forked from joinfaces/joinfaces-maven-jar-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 1.55 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
dist: trusty
language: java
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
addons:
firefox: "53.0"
apt:
packages:
- oracle-java8-installer
before_script:
- echo "Extracting firefox and setting PATH variable..."
- tar -xjf /tmp/firefox-53.0.tar.bz2 --directory /tmp
- export PATH="/tmp/firefox:$PATH"
- echo "Downloading chrome..."
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install google-chrome-stable
- echo "Downloading maven and setting PATH variable..."
- wget http://apache.claz.org/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- tar zxvf apache-maven-3.3.9-bin.tar.gz
- chmod +x apache-maven-3.3.9/bin/mvn
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$PWD/apache-maven-3.3.9/bin:${PATH}
script: >
mvn -T 4 -Pcheck-duplicate,check-checkstyle,check-cycles,check-cpd,check-pmd,check-findbugs -Dmaven.test.skip=true verify
&& /usr/bin/xvfb-run mvn --settings ignoreSnapshotsSettings.xml -DwebDriverType=firefox -Pignore-snapshot-repositories,check-cobertura-integration-test,attach-integration-test clean cobertura:check-integration-test
after_success: >
/usr/bin/xvfb-run mvn --settings ignoreSnapshotsSettings.xml -DwebDriverType=chrome -Pignore-snapshot-repositories,attach-integration-test cobertura:cobertura-integration-test org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report