Skip to content

Commit

Permalink
Update Travis CI configuration to enable releases
Browse files Browse the repository at this point in the history
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
ctrueden committed Nov 27, 2017
1 parent 8b53a7b commit f54c6ed
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .travis.yml
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=
9 changes: 9 additions & 0 deletions .travis/build.sh
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 added .travis/signingkey.asc.enc
Binary file not shown.
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -698,5 +698,21 @@
<additionalparam>-Xdoclint:none</additionalparam>
</properties>
</profile>
<!-- This profile enables deployment to the SciJava Maven repository. -->
<profile>
<id>deploy-to-imagej</id>
<distributionManagement>
<repository>
<id>imagej.releases</id>
<name>ImageJ Releases Repository</name>
<url>dav:http://maven.imagej.net/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>imagej.snapshots</id>
<name>ImageJ Snapshots Repository</name>
<url>dav:http://maven.imagej.net/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
</project>

0 comments on commit f54c6ed

Please sign in to comment.