leponceau.org

Programming And Stuff, You Know The Thing…

Running Java+Maven/Kotlin/Groovy/SBT/Scala/Gradle/Grails etc. Under Windows On Travis CI (Github)

Posted at — Feb 15, 2019

Our trick is to use SKDMAN.

.travis.yml:

language: c
os:
  - windows
  - linux
script: ./.travis.sh

.travis.sh:

#!/bin/bash

set -Eev

choco install unzip || :
choco install zip || :
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

sdk install java 11.0.2-open
sdk install maven 3.6.0
mvn -q clean install