Show Navigation

SDKMAN! with Travis

By Sergio del Amo Caballero

January 7, 2019

Tags: #deployment

The 2GM (Groovy, Grails® framework, and Micronaut) team at Object Computing, Inc. (OCI) 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.

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

You might also like ...