Fix travis-ci build with openjdk7
This commit is contained in:
parent
3588ba6ac2
commit
78b4a488fc
26
.travis.yml
26
.travis.yml
@ -1,25 +1,21 @@
|
|||||||
language: java
|
language: java
|
||||||
sudo: false
|
sudo: false
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- openjdk-6-jdk
|
- ca-certificates-java
|
||||||
dist: trusty
|
- openjdk-7-jre-headless
|
||||||
jdk:
|
|
||||||
- openjdk6
|
|
||||||
|
|
||||||
install:
|
jdk:
|
||||||
- if [[ "${TRAVIS_JDK_VERSION}" == 'openjdk6' ]]; then
|
- openjdk7
|
||||||
export CUSTOM_MVN_VERION="3.2.5"
|
|
||||||
echo "Download Maven ${CUSTOM_MVN_VERION}....";
|
|
||||||
wget https://archive.apache.org/dist/maven/maven-3/${CUSTOM_MVN_VERION}/binaries/apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
|
|
||||||
unzip -qq apache-maven-${CUSTOM_MVN_VERION}-bin.zip || travis_terminate 1;
|
|
||||||
export M2_HOME=$PWD/apache-maven-${CUSTOM_MVN_VERION};
|
|
||||||
export PATH=$M2_HOME/bin:$PATH;
|
|
||||||
mvn -version;
|
|
||||||
fi
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- if [ "${TRAVIS_JDK_VERSION}" == 'openjdk8' ] || [ "${TRAVIS_JDK_VERSION}" == 'openjdk6' ]; then
|
- if [[ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" == 'master' ]]; then
|
||||||
mvn deploy --settings .travis-settings.xml -DskipTests=true -B || travis_terminate 1;
|
mvn deploy --settings .travis-settings.xml -DskipTests=true -B || travis_terminate 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.m2
|
||||||
|
Loading…
Reference in New Issue
Block a user