-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Travis CI configuration to enable releases
We reuse the SciJava project's release-version.sh and build-travis.sh scripts, so that Travis CI does the hard work of releasing for us. This temporarily disables macOS builds. We can reenable them once the broken integration tests are fixed; see #267.
- Loading branch information
Showing
4 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
language: | ||
- cpp | ||
- java | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
before_script: | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" && -z "$JAVA_HOME" && -x "/usr/libexec/java_home" ]] ; then export JAVA_HOME=$(/usr/libexec/java_home); fi | ||
- git submodule init | ||
- git submodule update | ||
|
||
script: mvn -Prun-its | ||
language: java | ||
jdk: oraclejdk8 | ||
branches: | ||
only: | ||
- master | ||
- "/.*-[0-9]+\\..*/" | ||
install: true | ||
script: ".travis/build.sh" | ||
cache: | ||
directories: | ||
- "~/.m2/repository" | ||
env: | ||
global: | ||
- secure: CF6vPy8rQOYz7ngbwx3F9FLVS53f4f7TYhTuev3JNvaNX4FFC2KupxRQGWhpcnDPd20c8af21cU7WiJX71ZHOw3QWpM6eHWraEcuMiQ1oaHpUQJsW0D5BZs9KV2K1HRuOKIwCowOVItrHcVZt/4+XiBC52CsLcTt1QYL9p6HzMo= | ||
- secure: kxmNdYyMCN/yAm8wf6MxntMnMXD1fYEPfpJKpWJgz/cugdi6CDcmVaNFu0NLGthjI3bABnzvC7dThckvQHBztLDq9bgUKB8E57KbqjF4FVVHoNgLz8tMmcSwhWYDOUZydch19fdOh4dR3Vvgh8yuWLrBsUIwEaWWSjKUEEOwpEY= | ||
- secure: nmmm4cFQf+XrHxDRWFySRxg34Va7cpPiG4caYIJhb5iAzNuOy6zPrx3i7DgggWywEp2KsJc8VcUuGH+HtAbtC784mDstNH41fQTWxO2t/jvUzBlS7Lo2CbCfhj9ZieU5hrY0FOqCNl16KHxCLZQe73vzjB7MA5ol0zVNkamwcbA= | ||
- secure: PmR8kB9za2awy3sNOxkFgzJXSEMpjJm+SGGa2RzcLlmkfLj8qIUyzdskQpvr2p7UKBwUALJu7d4nAXA/o8PGRgNmmAyBv8CN7mt3Mo1a8ja6GdB1VfTE2OVpblzGFL3vfRRDJ9YXny/ZQHFqV86HeiQT2m2qhoU+8KMVWbgjDQ4= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/travis-build.sh | ||
sh travis-build.sh $encrypted_f76761764219_key $encrypted_f76761764219_iv && | ||
if [ ! -f release.properties ] | ||
then | ||
# Not a release -- also perform integration tests. | ||
mvn -Dinvoker.debug=true -Prun-its | ||
fi | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters