SDKMAN! with Travis
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
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