Skip to content

Commit ff439a6

Browse files
author
Luke Spragg
committed
Add additional checks to Travis-CI configuration.
1 parent 24b96b1 commit ff439a6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
# Source language and JDK version to use.
12
language: java
23
jdk: oraclejdk7
34

5+
# Compile and package JAR and set build properties.
46
install: mvn package -DbuildNumber=$TRAVIS_BUILD_NUMBER -DciSystem=travis -Dcommit=${TRAVIS_COMMIT:0:7}
57
after_success:
6-
- "git clone -b travis `git config --get remote.origin.url` target/travis"
7-
- "[[ \"$TRAVIS_BRANCH\" == \"master\" ]] && mvn deploy --settings target/travis/settings.xml"
8+
# Get files for use with build, namely the custom Maven settings.xml.
9+
- "git clone https://github.com/SpoutDev/travis-ci-resources.git target/travis"
10+
# 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.
11+
- "[[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == SpoutDev/React ]] && [[ $TRAVIS_BRANCH == master ]] && mvn deploy --settings target/travis/settings.xml"
812

913
notifications:
14+
# Disable build status email notifications, until the issue with forks is fixed.
1015
email: false
1116
webhooks:
12-
- http://get.spout.org/hook
17+
# Send build information and status to Notifico.
1318
- http://n.tkte.ch/h/1148/c1ZbS3rufJyzaghnxyW5Iu5e
1419

1520
env:

0 commit comments

Comments
 (0)