Skip to content

Commit

Permalink
Switch from Jenkins to Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Feb 28, 2017
1 parent 0398190 commit a164ba8
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: java
jdk: oraclejdk8
branches:
only: master
install: true
script: ".travis/build.sh"
after_success: ".travis/notify.sh Travis-Success"
after_failure: ".travis/notify.sh Travis-Failure"
env:
global:
- secure: fUjzJT4FxWloAnNxmVu+zIFKffChGebeoj2AhCEeKNm8iQgMSrDCmFuyBaGcg9+ytUQFsyl5mp+BTkhcrKdw7UXxAwaQ058uKFBQk77/VyVcxOqijE8rOwinlUHAKb7VuUDwjzlrEUUQ3tAInbhDFmHcnY2cWuU3C3hMUjrHHPY=
- secure: dPoZjE0ue+jBXPcm8u688AX4bl0OGQITpO/VgulAazO5dXBA5s0jTOoIKg23L+nE5LUa0K4vrJU6fbbbMZPffot8GPppq/EJymzXHiJ5jWozb5D8tysGTxfEr6Q3hvKAfvV1XOto57VVEh9x8jqdLixBpc9Ry8iAg9slbZ4mZcY=
7 changes: 7 additions & 0 deletions .travis/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
dir="$(dirname "$0")"
test "$TRAVIS_SECURE_ENV_VARS" = true \
-a "$TRAVIS_PULL_REQUEST" = false \
-a "$TRAVIS_BRANCH" = master &&
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml" ||
mvn install
2 changes: 2 additions & 0 deletions .travis/notify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/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"
14 changes: 14 additions & 0 deletions .travis/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<settings>
<servers>
<server>
<id>imagej.releases</id>
<username>travis</username>
<password>${env.MAVEN_PASS}</password>
</server>
<server>
<id>imagej.snapshots</id>
<username>travis</username>
<password>${env.MAVEN_PASS}</password>
</server>
</servers>
</settings>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![](https://img.shields.io/maven-central/v/net.imglib2/imglib2.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.imglib2%22%20AND%20a%3A%22imglib2%22)
[![](http://jenkins.imagej.net/job/ImgLib2/lastBuild/badge/icon)](http://jenkins.imagej.net/job/ImgLib2/)
[![](https://travis-ci.org/imglib/imglib2.svg?branch=master)](https://travis-ci.org/imglib/imglib2)
[![Join the chat at https://gitter.im/imglib/imglib2](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/imglib/imglib2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

ImgLib2 is a general-purpose, multidimensional image processing library.
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<url>https://github.com/imglib/imglib2/issues</url>
</issueManagement>
<ciManagement>
<system>Jenkins</system>
<url>http://jenkins.imagej.net/job/ImgLib2/</url>
<system>Travis CI</system>
<url>https://travis-ci.org/imglib/imglib2</url>
</ciManagement>

<properties>
Expand Down

0 comments on commit a164ba8

Please sign in to comment.