-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (35 loc) · 1.04 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
language: java
sudo: false
jdk: openjdk12
dist: trusty
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
cache:
directories:
- .autoconf
- $HOME/.m2
- $HOME/.sonar/cache
addons:
sonarcloud:
organization: "olszewskimichal-github"
token:
secure: ${SONAR_TOKEN}
branches:
- master
- develop
script:
- sonar-scanner
jobs:
include:
- stage: test
script:
- mvn test -B
after_success:
- mvn sonar:sonar -Dsonar.coverage.exclusions=**/pl/michal/olszewski/rssaggregator/config/** -Dsonar.jacoco.reportPaths=/home/travis/build/olszewskimichal/rssAggragator/application/target/jacoco.exec,/home/travis/build/olszewskimichal/rssAggragator/items/target/jacoco.exec,/home/travis/build/olszewskimichal/rssAggragator/blogs/target/jacoco.exec,/home/travis/build/olszewskimichal/rssAggragator/search/target/jacoco.exec
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
recipients:
- olsz72@o2.pl
on_success: change
on_failure: always