File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 11language : java
22
33jdk :
4+ - oraclejdk9
45 - oraclejdk8
5- - oraclejdk7
6+ - openjdk8
67 - openjdk7
7- - openjdk6
8+
9+ matrix :
10+ include :
11+ - addons :
12+ apt :
13+ packages :
14+ - openjdk-6-jdk
15+ jdk : openjdk6
16+ env : CUSTOM_MVN_VERION="3.2.5"
817
918install :
19+ - if [[ -n "${CUSTOM_MVN_VERION}" ]]; then
20+ echo "Download Maven ${CUSTOM_MVN_VERION}....";
21+ if [[ "${CUSTOM_MVN_VERION}" == "3.0" ]]; then
22+ wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
23+ else
24+ wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
25+ fi;
26+ unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
27+ export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION};
28+ export PATH=$M2_HOME/bin:$PATH;
29+ mvn -version;
30+ fi
1031 - mvn test -DskipTests=true -B -V
1132 - jdk_switcher use oraclejdk8
1233 - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true -B -V
You can’t perform that action at this time.
0 commit comments