-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1021 Bytes
/
.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
language: java
cache:
directories:
- ${HOME}/.m2
- ${TRAVIS_BUILD_DIR}/dependencies
addons:
apt:
packages:
- tree
before_install:
- echo ${TRAVIS_BUILD_DIR}
- echo ${PWD}
- echo "====== DEPENDENCIES - Start ======"
- export DEP_DIR=${TRAVIS_BUILD_DIR}/dependencies
- tree ${DEP_DIR}
- echo "====== MAVEN - Start ======"
- export MVN_VERSION=3.5.0
- export M2_HOME=${DEP_DIR}/maven/apache-maven-${MVN_VERSION}
- export PATH=${M2_HOME}/bin:${PATH}
- test -d ${M2_HOME} || (wget https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/apache-maven-${MVN_VERSION}-bin.zip && unzip -qq apache-maven-${MVN_VERSION}-bin.zip -d ${DEP_DIR}/maven)
- mvn --version
- mvn help:evaluate -Dexpression=settings.localRepository | grep -E '^([/a-zA-Z0-9_. \-]+)$'
- echo "====== MAVEN - End ======"
- tree ${DEP_DIR}
- echo "====== DEPENDENCIES - End ======"
jdk:
- oraclejdk8
script: "mvn cobertura:cobertura"
after_success:
- bash <(curl -s https://codecov.io/bash)