-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
18 lines (18 loc) · 957 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo: required
language: java
services:
- docker
jdk:
- openjdk8
script:
- docker run -it -v "$HOME/.m2/repository":/root/.m2/repository -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven maven:3-jdk-8 mvn verify
- docker run -it -v "$HOME/.m2/repository":/root/.m2/repository -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven frekele/maven:3.3.3-jdk8 mvn verify
- docker run -it -v "$HOME/.m2/repository":/root/.m2/repository -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven frekele/maven:3.3.9-jdk8 mvn verify
- docker run -it -v "$HOME/.m2/repository":/root/.m2/repository -v "$PWD":/usr/src/mymaven -w /usr/src/mymaven frekele/maven:3.5.0-jdk8 mvn verify
after_success:
- sudo /usr/local/maven/bin/mvn clean
- "[[ ${TRAVIS_PULL_REQUEST} == 'false' ]] && [[ ${TRAVIS_TAG} == '' ]] && mvn deploy -DskipTests --settings etc/deploy-settings.xml"
- mvn clean verify coveralls:report -Prun-coverage
cache:
directories:
- '$HOME/.m2/repository'