8000 Add a unified script for travis builds · hadim/scijava-scripts@0a7c8bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a7c8bc

Browse files
committed
Add a unified script for travis builds
Previously, every component had an identical, copy-pasted .travis/build.sh with most of these steps. They will now be changed to curl this script instead, so that improvements to the Travis-based build process can immediately propagate to all components needing it, without doing commits across hundreds of different repositories.
1 parent ff0ef66 commit 0a7c8bc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

travis-build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
#
4+
# travis-build.sh - A script to build and/or release SciJava-based projects.
5+
#
6+
7+
dir="$(dirname "$0")"
8+
if [ "$TRAVIS_SECURE_ENV_VARS" = true
9+
-a "$TRAVIS_PULL_REQUEST" = false
10+
-a "$TRAVIS_BRANCH" = master ]
11+
then
12+
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml"
13+
else
14+
mvn install
15+
fi

0 commit comments

Comments
 (0)
0