Skip to content

Commit

Permalink
Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarwell committed May 18, 2019
1 parent 047de6d commit a22b6f8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: java

dist: xenial

env:
- TRAVIS_JDK=adopt@1.8.202-08
- TRAVIS_JDK=adopt-openj9@1.8.212-03
- TRAVIS_JDK=adopt@1.11.28-0
- TRAVIS_JDK=adopt-openj9@1.11.28-0

before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "$TRAVIS_JDK" && jabba use $_ && java -Xmx32m -version

stages:
- validations
- test
- java11

jobs:
include:
- stage: validations
script: mvn checkstyle:check
name: "Code validations (format, binary compatibilty, whitesource, etc.)"

- stage: test
script: mvn clean test
name: "Run tests for Java 8"

# Test against Java 11
- stage: java11
script: mvn clean test
env: TRAVIS_JDK=adopt-openj9@1.11.0-2
name: "Run tests for Java 11"

cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.jabba/jdk"


0 comments on commit a22b6f8

Please # to comment.