Skip to content

Commit 9694f3b

Browse files
committed
Switch from Jenkins to Travis CI
1 parent 1ecf2e9 commit 9694f3b

File tree

5 files changed

+37
-2
lines changed

5 files changed

+37
-2
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: java
2+
jdk: oraclejdk8
3+
branches:
4+
only: master
5+
install: true
6+
script: ".travis/build.sh"
7+
after_success: ".travis/notify.sh Travis-Success"
8+
after_failure: ".travis/notify.sh Travis-Failure"
9+
env:
10+
global:
11+
- secure: jGhSqptdMbp00X5BIRqkkHAS5S0ANgvPYZXJY9SEQa4Mdty69vaQk9kmvMdzFUNum0OeevQ1Vh4OFLel6wUaxDpArcVhjyhBvMVErHnWKeR1wnX13JIrZ4A/+UUVRAtP8p7O6vtNI0G5TyV2PcXdrP4a6I08v8BxAbsZOgqHvQ0=
12+
- secure: DuhY7giY3c9qVYGXZe3S4uPKEKPIaFkc0wVLxenwGNtcE9qh1XcLkOz07felc44DC6+sU3fOIT4Go1DqXf4V1ua05u2sbVrWkrHo2XTfUKbMphP19Irh1OAQx1H3blXuE8KfAZLjiJseSB/wzCs/GrDqy9V9OuOZoLu4otzvSWI=

.travis/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
dir="$(dirname "$0")"
3+
test "$TRAVIS_SECURE_ENV_VARS" = true \
4+
-a "$TRAVIS_PULL_REQUEST" = false \
5+
-a "$TRAVIS_BRANCH" = master &&
6+
mvn -Pdeploy-to-imagej deploy --settings "$dir/settings.xml" ||
7+
mvn install

.travis/notify.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
curl -fs "https://jenkins.imagej.net/job/$1/buildWithParameters?token=$TOKEN_NAME&repo=$TRAVIS_REPO_SLUG&commit=$TRAVIS_COMMIT&pr=$TRAVIS_PULL_REQUEST"

.travis/settings.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<settings>
2+
<servers>
3+
<server>
4+
<id>imagej.releases</id>
5+
<username>travis</username>
6+
<password>${env.MAVEN_PASS}</password>
7+
</server>
8+
<server>
9+
<id>imagej.snapshots</id>
10+
<username>travis</username>
11+
<password>${env.MAVEN_PASS}</password>
12+
</server>
13+
</servers>
14+
</settings>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@
173173
<url>https://github.com/imglib/imglib2-algorithm/issues</url>
174174
</issueManagement>
175175
<ciManagement>
176-
<system>Jenkins</system>
177-
<url>http://jenkins.imagej.net/job/ImgLib2-algorithm/</url>
176+
<system>Travis CI</system>
177+
<url>https://travis-ci.org/imglib/imglib2-algorithm</url>
178178
</ciManagement>
179179

180180
<properties>

0 commit comments

Comments
 (0)