forked from TechnionYP5777/SmartCity-Market
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (29 loc) · 1.28 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
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
# add this if you want to be notified about successfull/failed builds to your mail.
notifications:
email:
sudo: false
install:
- pip install --user html2text
# add this if you use maven for your project and want to verify mvn build is successful and all unit tests pass.
script:
- mvn clean install -DskipTests=false cobertura:cobertura jxr:jxr surefire-report:report-only
# run the coverage tool
#- mvn cobertura:cobertura
after_script:
# see surfire report (tests overview)
- python html2text.py /home/travis/build/TechnionYP5777/SmartCity-Market/Server/target/surefire-reports/*html
- python html2text.py /home/travis/build/TechnionYP5777/SmartCity-Market/Customer/target/surefire-reports/*
- python html2text.py /home/travis/build/TechnionYP5777/SmartCity-Market/Employee/target/surefire-reports/surefire-report.html
- python html2text.py /home/travis/build/TechnionYP5777/SmartCity-Market/Sales/target/surefire-reports/surefire-report.html
- python html2text.py /home/travis/build/TechnionYP5777/SmartCity-Market/Common/target/surefire-reports/surefire-report.html
# reporting the coverage report to codecov
after_success:
- bash <(curl -s https://codecov.io/bash)