This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
50 lines (46 loc) · 1.78 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
49
50
sudo: false
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
env:
- MVN_VERSION=3.0.5
- MVN_VERSION=3.1.1
- MVN_VERSION=3.2.5
- MVN_VERSION=3.3.9
matrix:
exclude:
- jdk: openjdk6
env: MVN_VERSION=3.3.9
cache:
apt: false
bundler: false
directories:
- $HOME/.m2/repository
before_cache: rm -rf $HOME/.m2/repository/de/is24/mavenplugins/deadcode4j-maven-plugin/
before_install:
# install Maven according to build matrix
- MVN_URL=https://archive.apache.org/dist/maven/maven-3/$MVN_VERSION/binaries/apache-maven-$MVN_VERSION-bin.tar.gz
- wget -q -O /tmp/maven.tar.gz $MVN_URL
- tar xzf /tmp/maven.tar.gz
- export M2_HOME=`pwd`/apache-maven-$MVN_VERSION
- export PATH=$M2_HOME/bin:$PATH
# https://github.com/travis-ci/travis-ci/issues/1689 & https://github.com/travis-ci/travis-ci/issues/4613
- export MAVEN_SKIP_RC=true
install:
#attempt to download all dependencies in the install phase; due to http://jira.codehaus.org/browse/MDEP-82, dependency:go-offline is useless
- mvn -B -U clean verify org.apache.maven.plugins:maven-war-plugin:2.6:help -Dinvoker.skip=true -Dmaven.main.skip=true -Dmaven.plugin.skip=true -Dmaven.test.skip=true -PenableCoverage,travis
# surefire seems to add these dependencies dynamically
- mvn -B org.apache.maven.plugins:maven-dependency-plugin:2.10:get -Dartifact=org.apache.maven.surefire:surefire-junit4:2.17
- mvn -B org.apache.maven.plugins:maven-dependency-plugin:2.10:get -Dartifact=org.apache.maven.surefire:surefire-junit47:2.17
script: mvn -B -o clean verify -PenableCoverage,travis
after_success: mvn -B jacoco:report coveralls:jacoco
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/217ded7d3afc66dca26a
on_success: always
on_failure: always
on_start: false