-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
58 lines (49 loc) · 2.74 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Use new Travis-CI infrastructure
sudo: false
# Source language and JDK version to use
language: java
jdk: oraclejdk8
# Use cached Maven dependencies
cache:
directories:
- $HOME/.m2
# Pre-install Maven dependencies
install: mvn dependency:go-offline
# Compile and test source
script: mvn clean -DbuildNumber=$TRAVIS_BUILD_NUMBER -DciSystem=travis -Dcommit=${TRAVIS_COMMIT:0:7}
# Fetch resources, run deployment goal/task, and generate Javadocs and reports
after_success:
# Get files for use with build, namely the custom Maven settings.xml and scripts
- "git clone https://github.com/flow/travis-ci-resources.git $HOME/build/flow/travis"
# DEVELOP: Check if commit is not a pull request, if repo is official, if branch is not master; then deploy artifacts
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == flow/persistence ]] && [[ $TRAVIS_BRANCH == develop ]] && mvn javadoc:jar source:jar deploy --settings $HOME/build/flow/travis/settings.xml"
# RELEASE: Check if commit is not a pull request, if repo is official, if branch is master; then run deployment script
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == flow/persistence ]] && [[ $TRAVIS_BRANCH == master ]] && $HOME/build/flow/travis/deploy.sh && $HOME/build/flow/travis/gh-pages.sh"
# Generate Javadocs and report for Coveralls.io
- "mvn javadoc:javadoc cobertura:cobertura coveralls:report -DserviceJobId=$TRAVIS_JOB_ID"
# RELEASE: Deploy JARs to GitHub Releases
deploy:
provider: releases
api-key: $GITHUB_TOKEN
file_glob: true
file: target/flow-persistence-*.jar
skip_cleanup: true
on:
branch: master
# 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/2038/s1-vgwQBXo6CiTpkjY8K2Rz_
# Environmental system variables
env:
global:
# Make the log output cleaner
- TERM=dumb
# Super secure, encrypted variables! Ssssh!
- secure: "lc7LlG6SMbXVgMD2zrw/TxZIHt8+abV284XgCTiECeYK2jPCDk87hJ6XTjufGRx2JgZBVZi9ynJvXXHDwjF/lJ6+bTJhMSyXwTzsCblkew0KDpZod5vKKi2t4rBO/ZWOKrlHZfze3Y722WgTer7vZUvnYMC0bSCvVAX30j2Ubj8="
- secure: "aoddWePVU4+nVZ5P7QkVz+ZIhDpj+SA7zqQGJxhSVuwYdksH9VFrRIwQ7KaVSqSW3HE8/4AOf5m4gWaAAwSzol1UROwCOy4yRMNEDakNWZnvwrYl491VyB9qc0g3HIPVPydmAQVQWLIjtSEK8bmZIb7FTfSKY+8X7XA2VOnPeXk="
- secure: "YFj3VJZ6tHUoMez6etsGuo6VHlDCP5oSCut46LDNbo4F+YVqqkJNMSyAnDkcN2Dgu3+nL7MgNkXuQtkitKfSe5MEIWmVTsYXzGSaeR2prIqIjGbNU6mWgwKmunJXWRAE3AIHXkdPUP2aU5spKiMLnmOVaxxTYEOWn+0WLacE6+k="
- secure: "Jn7qV2A7PFTMSBoksIZM6EoBZxDQXQS0opeYD1eUa3HaRUGYLGYLG3g+tSnRHvEDF/beEkELNMZyDckRdz9nNd8bTf5snkwvpAuA6u4BYA9X+NigepXpgvEfH2r0JLzqsQ9kojBKeeg/I7l3yCSJupWscQjTiSc+wk4+e+BZV+o="