SDKMAN! with Travis

SDKMAN! with Travis

By Sergio del Amo Caballero

January 7, 2019


The OCI Grails/Micronaut Team uses Travis CI and SDKMAN! daily.

Using SDKMAN! in Travis is possible and opens a lot of possibilities.

The following .travis.yml file will install SDKMAN! and create a Grails app using the latest version available.

  1. install: true
  2. jdk:
  3. - oraclejdk8
  4. script:
  5. - curl -s get.sdkman.io | bash
  6. - source "$HOME/.sdkman/bin/sdkman-init.sh"
  7. - echo sdkman_auto_answer=true > ~/.sdkman/etc/config
  8. - source "/home/travis/.sdkman/bin/sdkman-init.sh"
  9. - sdk install grails
secret