Skip to content

Commit

Permalink
Travis: Switch from precise to default dist and manually install open…
Browse files Browse the repository at this point in the history
…jdk6

- this should fix failing builds
  • Loading branch information
uwolfer committed Nov 3, 2018
1 parent 01c39a0 commit 91cd9fc
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
sudo: false

language: java

# precise required for openjdk6, see https://github.com/travis-ci/travis-ci/issues/8199
dist: precise

jdk:
- openjdk6
# - openjdk7
# - oraclejdk7
- oraclejdk8

addons:
apt:
packages:
- openjdk-6-jdk
sonarcloud:
organization: "uwolfer-github"
token: $SONAR_TOKEN
Expand All @@ -24,6 +22,16 @@ cache:
- $HOME/.m2/repository/
- $HOME/.sonar/cache/

install:
- if [[ "$TRAVIS_JDK_VERSION" == "openjdk6" ]]; then
echo "Downloading Maven 3.0";
wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1;
unzip -qq apache-maven-3.0-bin.zip || travis_terminate 1;
export M2_HOME=$PWD/apache-maven-3.0;
export PATH=$M2_HOME/bin:$PATH;
mvn -version;
fi

after_success:
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
mvn clean cobertura:cobertura coveralls:report jacoco:prepare-agent test jacoco:report sonar:sonar;
Expand Down

0 comments on commit 91cd9fc

Please sign in to comment.