forked from kaazing/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
20 lines (20 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sudo: required
language: Java
jdk: oraclejdk8
env:
global:
- secure: "eUJzrr3JIxDF1Cf6Qnlj+g1rtX0NOEoOKvMNw9V/0JYP++vtUW9GD11gJ0YwfRU4/za3R4WBcW8JgtvOiyDCZkIRd+1nTsHeKY/ERwFjG8S29X7R6DUEUHL00B03MGJ0NZyRE1lzDc/np4zqcuH8wHqzXwszu+iQsTqrzHegROM="
- secure: "F6oCHN9p/gAFymPD091Yq/7niP1swVRrox7wPUQ3g/ELpIl8GS5JD2GapfVhsdV5oOkIXn0JWmzNSAVrI9jeUVZUCtkUdr+OMdyzzS9iJHmDxQOGnz3/vefbV5VQTCIFZKzE2c7usVcaxkVj4E+Ao4pcrXoXOzbvx2In2D/7+B8="
before_install: certificates/add-to-cacerts.sh
install: mvn -q -B -U install -DskipTests -DskipITs
script:
- >
if [ ${TRAVIS_PULL_REQUEST} == "false" ]; then
if [ ${TRAVIS_BRANCH} == "develop" ] || [ ${TRAVIS_BRANCH} == "master" ] || [[ ${TRAVIS_BRANCH} == release/* ]]; then
mvn -B clean verify -Psonar && mvn -B sonar:sonar -Dsonar.host.url=https://repository.kaazing.com/secret-sauce/sonarqube -Dsonar.login=${SONAR_USER} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.branch=${TRAVIS_BRANCH};
else
mvn -B clean verify && echo "SonarQube analysis is performed only for commits on the develop, master and release/* branches(not for PRs)";
fi;
else
mvn -B clean verify && echo "SonarQube analysis is performed only for commits on the develop, master and release/* branches(not for PRs)";
fi;