Browse Source

#234 - Enable building with JDK11.

pull/1188/head
Mark Paluch 6 years ago
parent
commit
5951df558c
No known key found for this signature in database
GPG Key ID: 51A00FA751B91849
  1. 4
      .travis.yml
  2. 48
      Jenkinsfile

4
.travis.yml

@ -8,9 +8,9 @@ sudo: false @@ -8,9 +8,9 @@ sudo: false
services:
- docker
- postgresql
install: true
script:
- "./mvnw clean dependency:list test -Pno-jacoco -Dsort -U"
- "./mvnw -version"
- "./mvnw -Pjava11 clean dependency:list test -Dsort -U"

48
Jenkinsfile vendored

@ -12,7 +12,30 @@ pipeline { @@ -12,7 +12,30 @@ pipeline {
}
stages {
stage("Test") {
stage("test: baseline (jdk8)") {
when {
anyOf {
branch 'master'
not { triggeredBy 'UpstreamCause' }
}
}
agent {
docker {
image 'adoptopenjdk/openjdk8:latest'
label 'data'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock'
// root but with no maven caching
}
}
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci clean dependency:list test -Dsort -U -B'
sh "chown -R 1001:1001 target"
}
}
stage("Test other configurations") {
when {
anyOf {
branch 'master'
@ -20,10 +43,27 @@ pipeline { @@ -20,10 +43,27 @@ pipeline {
}
}
parallel {
stage("test: baseline") {
stage("test: baseline (jdk11)") {
agent {
docker {
image 'adoptopenjdk/openjdk11:latest'
label 'data'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock'
// root but with no maven caching
}
}
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,java11 clean dependency:list test -Dsort -U -B'
sh "chown -R 1001:1001 target"
}
}
stage("test: baseline (jdk13)") {
agent {
docker {
image 'adoptopenjdk/openjdk8:latest'
image 'adoptopenjdk/openjdk13:latest'
label 'data'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock'
// root but with no maven caching
@ -32,7 +72,7 @@ pipeline { @@ -32,7 +72,7 @@ pipeline {
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci clean dependency:list test -Dsort -Dbundlor.enabled=false -U -B'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,java11 clean dependency:list test -Dsort -U -B'
sh "chown -R 1001:1001 target"
}
}

Loading…
Cancel
Save