-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
40 lines (40 loc) · 1.32 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
40
language: java
sudo: false
install: true
addons:
sonarcloud:
organization: "jgreen"
github_token:
secure: $GITHUB_TOKEN_PASSWORD
branches:
- .*
chrome: stable
install:
- wget -N http://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
jdk:
- oraclejdk8
script:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
./gradlew clean build sonarqube artifactoryPublish -i;
test "${TRAVIS_PULL_REQUEST}" == "false" && test "${TRAVIS_TAG}" != "" && ./gradlew bintrayUpload;
git push https://$GITHUB_TOKEN_USER:[email protected]/martinstrejc/jgreen.git master:intTest;
fi
- if [ "$TRAVIS_BRANCH" == "intTest" ]; then
whereis google-chrome-stable;
whereis chromedriver;
./gradlew integrationTest stopPetClinicServerAfter -i;
fi
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.gradle'
- '.gradle'