forked from alexvictoor/pitest-cucumber-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (39 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
sudo: false
language: java
# Get latest install-jdk.sh script
before_install:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
env:
global:
# taken first download mirror from http://maven.apache.org/
- BASEURL=http://mirror.softaculous.com/apache/maven/maven-3/VERSION/binaries/apache-maven-VERSION-bin.tar.gz
- FILE=apache-maven-VERSION-bin.tar.gz
- DIR=apache-maven-VERSION/bin
matrix:
include:
# Open jdk 8 mvn 3.2.5
- jdk: openjdk8
env: MAVEN=3.2.5
# Java 8 mvn 3.3.9
- jdk: oraclejdk8
env: MAVEN=3.3.9
# Java 9 mvn 3.5.4
- jdk: oraclejdk9
env: MAVEN=3.5.4
# Java 9 mvn 3.2.5
- env: JDK='JDK9' MAVEN=3.2.5
install: . ./install-jdk.sh -F 9 -L GPL
# Java 10 mvn 3.5.4
- env: JDK='JDK 10' MAVEN=3.5.4
install: . ./install-jdk.sh -F 10 -L GPL
allow_failures:
# Java 11 mvn 3.5.4
- env: JDK='JDK 11' MAVEN=3.5.4
install: . ./install-jdk.sh -F 11 -L BCL
script:
- wget $(echo -n $BASEURL | sed -e 's#VERSION#'$MAVEN'#g')
- tar -xvzf $(echo -n $FILE | sed -e 's#VERSION#'$MAVEN'#')
- export PATH=$(echo -n $DIR | sed -e 's#VERSION#'$MAVEN'#'):$PATH
- java -version
- mvn -version
- mvn clean install