forked from vatbub/matchmaking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 991 Bytes
/
.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
language: java
sudo: required
git:
depth: false
addons:
sonarcloud:
organization: "vatbub-github"
jdk:
- openjdk8
cache:
directories:
- "$HOME/.m2"
install:
- wget https://s3.eu-central-1.amazonaws.com/vatbubjdk/jdk-8u191-linux-x64.tar.gz -nv
- tar -xf jdk-8u191-linux-x64.tar.gz
- export JAVA_HOME=/home/travis/build/vatbub/matchmaking/jdk1.8.0_191/
- curl https://cli-assets.heroku.com/install.sh | sh
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -DtrimStackTrace=false --settings travisMavenSettings.xml
after_success:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then heroku plugins:install java; heroku deploy:jar standaloneserverlauncher/target/matchmaking.standalone-server-launcher-1.0-SNAPSHOT-jar-with-dependencies.jar --app vatbubmatchmakingstaging; fi
notifications:
email:
recipients:
on_success: never
on_failure: always