forked from ronmamo/reflections
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 1.61 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
# Source language and JDK version to use
language: java
jdk: oraclejdk7
# Compile and package JAR and set build properties
install: mvn dependency:go-offline
script: mvn package -DbuildNumber=$TRAVIS_BUILD_NUMBER -DciSystem=travis -Dcommit=${TRAVIS_COMMIT:0:7}
# Perform steps after compilation/test success
after_success:
# Get files for use with build, namely the custom Maven settings.xml
- "git clone https://github.com/flow/travis-ci-resources.git target/travis"
# Check if commit is not a pull request, if repo is official, and branch is master, generate and deploy artifacts and reports
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == flow/reflections ]] && [[ $TRAVIS_BRANCH == master ]] && mvn javadoc:jar source:jar cobertura:cobertura coveralls:cobertura -DserviceJobId=$TRAVIS_JOB_ID deploy --settings target/travis/settings.xml"
# Notification services
notifications:
# Disable build status email notifications, until the issue with forks is fixed
email: false
webhooks:
# Send build information and status to Notifico
- http://n.tkte.ch/h/3297/EjBmvAjSlDF7B91OjbNTYAeN
# Environmental system variables
env:
global:
# Make the log output cleaner
- TERM=dumb
# Super secure, encrypted variables! Ssssh!
- secure: "pioMup35HNUJq4c4UfXCXJrUOSXVSYC7n8YU43boLsF97P5lLLvb8RU9K5QDntsDX9PJjdO2qbEVfZhZ1Y9CVz3Vl/OLhbvgO6SI7/d+4syjTmbCFWabFK7DaJ3UJavotIzRi/hiX9PiQdTvPn6g76JlT5791qul1vVQyBvU4ko="
- secure: "eiuIYaNCTGzoKkrddrYpS6NQWZa7q9Psbb3bndSXR3H23uk2Ww4fRrGnnvj6iRRozf6OtBo2XsRcu8M2/ZLrsZoVkp44fWt5oaEo+wkWNxUQxNQb3XdlSWM1WJQzGJIjBJ/dwID1NB1vmocYXMxr7BghJ1c2L7sGP3xM8PnPluM="