-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
34 lines (33 loc) · 1.05 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
os:
- linux
services:
- docker
language: generic
jdk:
- oraclejdk8
sudo: false
cache:
directories:
- $HOME/.gradle
env:
global:
- SPRING_OUTPUT_ANSI_ENABLED=ALWAYS
- SPRING_JPA_SHOW_SQL=false
- TERM=dumb
before_install:
- jdk_switcher use oraclejdk8
- java -version
- sudo /etc/init.d/mysql stop
- sudo /etc/init.d/postgresql stop
install:
script:
- chmod +x gradlew
- ./gradlew clean test --stacktrace --info
- ./gradlew sonarqube --no-daemon -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN -Dsonar.branch.name=$TRAVIS_BRANCH -Dsonar.organization=adyen -Dsonar.analysis.mode=preview -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST -Dsonar.github.repository=$TRAVIS_REPO_SLUG -Dsonar.github.oauth=$SONAR_GITHUB_TOKEN
- ./gradlew cucumberTest --stacktrace --info
- ./gradlew bootRepackage -Pprod -x test
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false