Skip to content

Commit 9c15908

Browse files
committed
Switch from Jenkins to Travis CI
1 parent bde2fe6 commit 9c15908

File tree

6 files changed

+38
-3
lines changed

6 files changed

+38
-3
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: OGmBMFyXdsbTwjJ9LdmfuWEO1VatknlSYt86ORhWNpN2YfWqTygj537XE6UxQjSOfONW9QazLe3mnN/1pNA3g285RSxRttC1tnVbdhJOSq1HDSRtllF3ajB6CX5/zdA9ryymhapTQVXQGyIbRN4ZCesc3EnOUu8jhx6lNIplBLI=
12+
- secure: YWVtq4Fv0stWL95x4Spj2A8My62qVU6LTqU0oijI3kCQuHAJoBmcSCGDHWIgHE9NiULk+ayWjz0Ts/va++13MKHmQwcru4RCTwAagzZdphz5L9+CaYCT5Z5qKMeScFLTbfvjnGz/gkDinaoR49+CETv1PoZ18OycijY72AKB1iY=

.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>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![](http://jenkins.imagej.net/job/scripting-Matlab/lastBuild/badge/icon)](http://jenkins.imagej.net/job/scripting-Matlab/)
1+
[![](https://travis-ci.org/scijava/scripting-matlab.svg?branch=master)](https://travis-ci.org/scijava/scripting-matlab)
22

33
# MATLAB Scripting
44

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
<url>https://github.com/scijava/scripting-matlab/issues</url>
8585
</issueManagement>
8686
<ciManagement>
87-
<system>Jenkins</system>
88-
<url>http://jenkins.imagej.net/job/scripting-Matlab/</url>
87+
<system>Travis CI</system>
88+
<url>https://travis-ci.org/scijava/scripting-matlab</url>
8989
</ciManagement>
9090

9191
<properties>

0 commit comments

Comments
 (0)