Skip to content

Commit c6f9b05

Browse files
committed
Switch from Jenkins to Travis CI
1 parent c3267b6 commit c6f9b05

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: JVq9EcQTLbGZTBWil2z/WKd84I2YsHQyIlhU6OmKSYIi4CZDb+4cl5rwLOlLeM+jlkX9eYHRfIRgscdAR1fBHFn+piXYjtsIsE3kHSnGSTmZklEk8VGsY5j0Y7FwZJj7CYrvEfAunYR5ivIpbESDzejjLPQVsMyq3EzrQ+FTM7o=
12+
- secure: GcG0+iBIi85qlcM0WrskXZVxVXsvRGeRMiNDuMWHVQ3skVV6kEtcqAgjTzMDllOwvsgHED3zoMRXFIjvhKPOQXtq6w55s6IVM2ytLjT1cJ6rVn8wzmHKCJUgQwQRa7CJvQcfAzess+teKhSFoGShGFiacaPHVfygtSgeZ0InJC0=

.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-Jython/lastBuild/badge/icon)](http://jenkins.imagej.net/job/scripting-Jython/)
1+
[![](https://travis-ci.org/scijava/scripting-jython.svg?branch=master)](https://travis-ci.org/scijava/scripting-jython)
22

33
# Jython Scripting
44

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@
7777
<url>https://github.com/scijava/scripting-jython/issues</url>
7878
</issueManagement>
7979
<ciManagement>
80-
<system>Jenkins</system>
81-
<url>http://jenkins.imagej.net/job/scripting-Jython/</url>
80+
<system>Travis CI</system>
81+
<url>https://travis-ci.org/scijava/scripting-jython</url>
8282
</ciManagement>
8383

8484
<properties>

0 commit comments

Comments
 (0)