Skip to content

Commit 7a2167e

Browse files
authored
Adding openjdk6 and maven3.0 in travis.yml
Travis has removed openjdk6 for saving space, hence adding it from addon and the version of maven which is by default used in travis requires minimum jdk7, hence installing specific version of maven. For more info refer : https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images travis-ci/travis-ci#8452
1 parent 13c9a5a commit 7a2167e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
language: java
22

3+
addons:
4+
apt:
5+
packages:
6+
- openjdk-6-jdk
7+
38
jdk:
9+
- openjdk6
410
- oraclejdk8
511
- openjdk7
612
- openjdk8
13+
14+
install:
15+
- echo "Downloading Maven 3.0";
16+
- wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1
17+
- unzip -qq apache-maven-3.0-bin.zip || travis_terminate 1
18+
- export M2_HOME=$PWD/apache-maven-3.0
19+
- export PATH=$M2_HOME/bin:$PATH
20+
- mvn -version
21+
- mvn clean package install -DskipTests -Dgpg.skip
722

823
after_failure: cat /home/travis/build/browserstack/browserstack-local-java/target/surefire-reports/*

0 commit comments

Comments
 (0)