Skip to content

Commit f5c13b6

Browse files
committed
Update Travis configuration
This will hopefully reduce the need for future en masse updates.
1 parent eba8e78 commit f5c13b6

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: java
22
jdk: oraclejdk8
33
branches:
4-
only: master
4+
only:
5+
- master
6+
- "/.*-[0-9]+\\..*/"
57
install: true
68
script: ".travis/build.sh"
7-
after_success: ".travis/notify.sh Travis-Success"
8-
after_failure: ".travis/notify.sh Travis-Failure"
99
env:
1010
global:
1111
- secure: Yk0gk4WMd4P8frvv9BQN+xGwMqtvzwjFukvAzcoqIBk1XthNFbthH+R5nm4PAtdF9YQ3jNi2zMAXuW5PJvOiJgoqpnEG4wRMsapiQvLuieIw7H5GnVowoziCWTllcAt0J3Utu8+7UP/FDtsOqQDE0W7c9NHi9HNAHcrK2B2nceI=

.travis/build.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
#!/bin/sh
2-
dir="$(dirname "$0")"
3-
if [ "$TRAVIS_SECURE_ENV_VARS" = true \
4-
-a "$TRAVIS_PULL_REQUEST" = false \
5-
-a "$TRAVIS_BRANCH" = master ]
6-
then
7-
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml"
8-
else
9-
mvn install
10-
fi
2+
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/travis-build.sh
3+
sh travis-build.sh

.travis/notify.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)