forked from primefaces/primefaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (22 loc) · 1.12 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
language: java
# specifying other dists doesn't make sense because `trusty` doesn't have `oraclejdk8` (fails due to `Sorry, but JDK '[oraclejdk8]' is not known.`) which is the only supported JDK currently. Testing on Mac OSX doesn't make too much sense since it will run the same `maven` based build routine.
jdk:
- oraclejdk8
- openjdk8
# - openjdk7 (not possible since JSF 2.3 dependency - we need to compile it)
script:
# add --update-snapshots if snapshots are used
- mvn clean install -Dmaven.javadoc.skip=true --batch-mode --show-version
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar; fi
addons:
sonarcloud:
organization: "primefaces"
token:
secure: "K7yf1BzI2ie7pqfsL+YIk4drf4m8j6gCsOA4W0n4Qst0Za/pVdncErhgxW4ZVgE8TjZvKymEPTQfr8TvogbyLiXXQACnamJ7G5p6qIWvIJ7tCZSVcUMznuKumsu4OnXsb7yu3RuN0p883UuOAB0FTLjyo3wOH0P70PK6Nil69dI="
branches:
- master
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.sonar/cache"