SDKMan with Travis

07 Jan 2019

Tags: Grails, Travis CI,

In the OCI Grails/Micronaut Team, we use Travis CI and SDKMAN daily.

Using SDKMAN in Travis is possible and opens a lot of possibilities. The next, .travis.yml file will install SDKMan and create a Grails app using the latest version available.

install: true
jdk:
  - oraclejdk8
script:
  - curl -s get.sdkman.io | bash
  - source "$HOME/.sdkman/bin/sdkman-init.sh"
  - echo sdkman_auto_answer=true > ~/.sdkman/etc/config
  - source "/home/travis/.sdkman/bin/sdkman-init.sh"
  - sdk install grails

Published on 07 Jan 2019