Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 3745624

Browse files
committed
Redesign CI to be scijava CI layout
1 parent a609e6c commit 3745624

File tree

7 files changed

+44
-46
lines changed

7 files changed

+44
-46
lines changed

.ci/build.sh

Lines changed: 0 additions & 34 deletions
This file was deleted.

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
dist: trusty
2-
sudo: false
3-
41
language: java
52
jdk: oraclejdk8
6-
7-
cache:
8-
directories:
9-
- '$HOME/.m2/repository'
10-
11-
install: ".ci/build.sh"
12-
script: ".ci/test.sh"
3+
branches:
4+
only: master
5+
install: ".travis/build.sh"
6+
script: ".travis/test.sh"
7+
after_success: ".travis/notify.sh Travis-Success"
8+
after_failure: ".travis/notify.sh Travis-Failure"

.travis/build.sh

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

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

.ci/test.sh renamed to .travis/test.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
#!/bin/bash
22
set -ex
33

4+
# Install Fiji
5+
6+
mkdir -p $IJ_PATH/
7+
cd $HOME/
8+
wget --no-check-certificate https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
9+
unzip fiji-linux64.zip > /dev/null 2>&1
10+
11+
12+
# Install the package
13+
14+
cd $TRAVIS_BUILD_DIR/
15+
mvn install -Pimagej --settings ".ci/test_settings.xml"
416

517
# Install python
618

@@ -32,5 +44,3 @@ jupyter kernelspec list
3244

3345
# Now run the test notebook
3446
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava" "$TRAVIS_BUILD_DIR/notebooks/Test.ipynb"
35-
36-
File renamed without changes.

0 commit comments

Comments
 (0)