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

Commit d694f59

Browse files
committed
Disable nb testing
1 parent addceb7 commit d694f59

File tree

5 files changed

+51
-51
lines changed

5 files changed

+51
-51
lines changed

.travis/build.sh renamed to .ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ unzip fiji-linux64.zip
2424
# Install the package
2525

2626
cd $TRAVIS_BUILD_DIR/
27-
mvn install -Pimagej --settings ".travis/settings.xml"
27+
mvn install -Pimagej --settings ".ci/settings.xml"
2828

2929

3030
# Deploy the package

.travis/settings.xml renamed to .ci/settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515

1616
</profile>
1717
</profiles>
18-
</settings>
18+
</settings>

.ci/test.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
5+
# Install python
6+
7+
cd $HOME/
8+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
9+
bash miniconda.sh -b -p "$HOME/conda"
10+
export PATH="$HOME/conda/bin:$PATH"
11+
12+
conda config --set always_yes yes --set changeps1 no
13+
conda config --add channels conda-forge
14+
conda update --yes conda
15+
conda update --yes --all
16+
conda info -a
17+
18+
conda create --yes -n scijava python jupyter nbconvert
19+
20+
source activate scijava
21+
22+
23+
# Install a kernel with Java in the Fiji folder
24+
25+
export IJ_PATH="$HOME/Fiji.app"
26+
export IJ_LAUNCHER="$IJ_PATH/ImageJ-linux64"
27+
28+
JAVA_COMMAND_CLASS="org.scijava.jupyter.commands.InstallScijavaKernel"
29+
$IJ_LAUNCHER --ij2 --headless --run $JAVA_COMMAND_CLASS "logLevel=\"info\",pythonBinaryPath=\"$(which python)\",installAllKernels=true"
30+
31+
jupyter kernelspec list
32+
33+
34+
# Now run some notebooks
35+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-python" "$TRAVIS_BUILD_DIR/notebooks/Welcome.ipynb"
36+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-groovy" "$TRAVIS_BUILD_DIR/notebooks/General.ipynb"
37+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-python" "$TRAVIS_BUILD_DIR/notebooks/Rich Output.ipynb"
38+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-python" "$TRAVIS_BUILD_DIR/notebooks/On-The-Fly Grabbing.ipynb"
39+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-groovy" "$TRAVIS_BUILD_DIR/notebooks/ImageJ.ipynb"
40+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-groovy" "$TRAVIS_BUILD_DIR/notebooks/Scijava.ipynb"
41+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-python" "$TRAVIS_BUILD_DIR/notebooks/languages/Python.ipynb"
42+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-groovy" "$TRAVIS_BUILD_DIR/notebooks/languages/Groovy.ipynb"
43+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-scala" "$TRAVIS_BUILD_DIR/notebooks/languages/Scala.ipynb"
44+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-clojure" "$TRAVIS_BUILD_DIR/notebooks/languages/Clojure.ipynb"
45+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-beanshell" "$TRAVIS_BUILD_DIR/notebooks/languages/Beanshell.ipynb"
46+
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava-javascript" "$TRAVIS_BUILD_DIR/notebooks/languages/Javascript.ipynb"
47+

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ cache:
55
directories:
66
- '$HOME/.m2/repository'
77

8-
install: ".travis/build.sh"
9-
script: ".travis/test.sh"
8+
install: ".ci/build.sh"
9+
script: ".ci/test.sh"

.travis/test.sh

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

0 commit comments

Comments
 (0)