-
Notifications
You must be signed in to change notification settings - Fork 72
/
.travis.yml
23 lines (20 loc) · 1.34 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
# Source language and JDK version to use.
language: java
jdk: oraclejdk7
# Compile and package JAR and set build properties.
install: mvn package javadoc:jar source:jar -DbuildNumber=$TRAVIS_BUILD_NUMBER -DciSystem=travis -Dcommit=${TRAVIS_COMMIT:0:7}
after_success:
# Get files for use with build, namely the custom Maven settings.xml.
- "git clone https://github.com/SpoutDev/travis-ci-resources.git target/travis"
# Check if commit s not a pull request, if git repo is official, and if branch is master. If checks pass, deploy artifacts to Maven repository.
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == Vanilla/Vanilla ]] && [[ $TRAVIS_BRANCH == master ]] && mvn deploy --settings target/travis/settings.xml"
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/495/VmgKQ4ao-JPBgNiuhZc-5bHv
env:
global:
- secure: "i/7ILQcFGsvVn8pn/s32gwXTfYCPMSZY1djuSygM2IiUIux3XS+MpKQb9K7SM6d3lFGiuxUQ0o9hDZ1r0s4Va1HOd55/98ROEixob94y9cb/GmLmbiZAyZ19gAF7s5V/K6uqZfe4IEPuZoMMyjcQNKelxJ+kRnP9qZBDcI23ZIM="
- secure: "t/ByMFK4grv1EjkuF6ygbEtZpsKDHaIFJCs33+sXN72dGuL4pbK+ifciLI14yqOGJogkCss2ZbdH3h8s6pcPR4qE8Zmwhz87M5M+t21V8+DJtj7QLt3hdBG+DIcYUykpR6SGk1lGagLJKNdzHGw5T1/W51WImMHHPXv12e1zZew="