From 6fbe480d4b55f028adadf5ed67ef973797336094 Mon Sep 17 00:00:00 2001
From: Curtis Rueden <ctrueden@wisc.edu>
Date: Thu, 5 Oct 2017 16:32:06 -0500
Subject: [PATCH] Update Travis configuration

This will hopefully reduce the need for future en masse updates.
---
 .travis.yml       |  6 +++---
 .travis/build.sh  | 11 ++---------
 .travis/notify.sh |  2 --
 3 files changed, 5 insertions(+), 14 deletions(-)
 delete mode 100755 .travis/notify.sh

diff --git a/.travis.yml b/.travis.yml
index 4cb7b74..ee21769 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,11 @@
 language: java
 jdk: oraclejdk8
 branches:
-  only: master
+  only:
+  - master
+  - "/.*-[0-9]+\\..*/"
 install: true
 script: ".travis/build.sh"
-after_success: ".travis/notify.sh Travis-Success"
-after_failure: ".travis/notify.sh Travis-Failure"
 env:
   global:
   - secure: 508SaI3Q6ktcAdsag8P0l2w+SKwzZxOS/uO7t02qKkrvdypQNL8HgmMIiWeBRLSrwNnFHbpJxlyWcv3+5J9GX2LjknAIBfv1w1y1YIABXaJ8T84I3+KkuyWVl5rBf9nVDZ6rrFflNDNmMRzviTBbUgMaFtzs6xd1tvQcMU15zf4=
diff --git a/.travis/build.sh b/.travis/build.sh
index 8cddb5f..e939b6c 100755
--- a/.travis/build.sh
+++ b/.travis/build.sh
@@ -1,10 +1,3 @@
 #!/bin/sh
-dir="$(dirname "$0")"
-if [ "$TRAVIS_SECURE_ENV_VARS" = true \
-  -a "$TRAVIS_PULL_REQUEST" = false \
-  -a "$TRAVIS_BRANCH" = master ]
-then
-  mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml"
-else
-  mvn install
-fi
+curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/travis-build.sh
+sh travis-build.sh
diff --git a/.travis/notify.sh b/.travis/notify.sh
deleted file mode 100755
index b3b239e..0000000
--- a/.travis/notify.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-curl -fs "https://jenkins.imagej.net/job/$1/buildWithParameters?token=$TOKEN_NAME&repo=$TRAVIS_REPO_SLUG&commit=$TRAVIS_COMMIT&pr=$TRAVIS_PULL_REQUEST"
-- 
GitLab