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

Commit 51fc598

Browse files
committed
Enable Travis
1 parent d0335e3 commit 51fc598

File tree

2 files changed

+117
-16
lines changed

2 files changed

+117
-16
lines changed

.travis/test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -ex
33

44
# Install Fiji
55

6+
export IJ_PATH="$HOME/Fiji.app"
67
mkdir -p $IJ_PATH/
78
cd $HOME/
89
wget --no-check-certificate https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
@@ -43,4 +44,4 @@ $IJ_LAUNCHER --ij2 --headless --run $JAVA_COMMAND_CLASS "logLevel=\"info\",pytho
4344
jupyter kernelspec list
4445

4546
# Now run the test notebook
46-
#jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava" "$TRAVIS_BUILD_DIR/notebooks/Test.ipynb"
47+
jupyter nbconvert --execute --ExecutePreprocessor.timeout="60" --ExecutePreprocessor.kernel_name="scijava" "$TRAVIS_BUILD_DIR/notebooks/Test.ipynb"

notebooks/Test.ipynb

+115-15
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@
1313
"cell_type": "code",
1414
"execution_count": 1,
1515
"metadata": {},
16+
"outputs": [
17+
{
18+
"data": {
19+
"text/plain": [
20+
"No Outputs"
21+
]
22+
},
23+
"execution_count": 1,
24+
"metadata": {},
25+
"output_type": "execute_result"
26+
}
27+
],
28+
"source": [
29+
"// @UIService ui\n",
30+
"ui.setHeadless(true)"
31+
]
32+
},
33+
{
34+
"cell_type": "code",
35+
"execution_count": 2,
36+
"metadata": {},
1637
"outputs": [
1738
{
1839
"name": "stdout",
@@ -27,7 +48,7 @@
2748
"No Outputs"
2849
]
2950
},
30-
"execution_count": 1,
51+
"execution_count": 2,
3152
"metadata": {},
3253
"output_type": "execute_result"
3354
}
@@ -38,7 +59,7 @@
3859
},
3960
{
4061
"cell_type": "code",
41-
"execution_count": 2,
62+
"execution_count": 3,
4263
"metadata": {},
4364
"outputs": [
4465
{
@@ -54,7 +75,7 @@
5475
"No Outputs"
5576
]
5677
},
57-
"execution_count": 2,
78+
"execution_count": 3,
5879
"metadata": {},
5980
"output_type": "execute_result"
6081
}
@@ -73,17 +94,52 @@
7394
]
7495
},
7596
{
76-
"cell_type": "markdown",
97+
"cell_type": "code",
98+
"execution_count": 7,
7799
"metadata": {},
100+
"outputs": [
101+
{
102+
"data": {
103+
"text/html": [
104+
"<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Key</th><th>Value</th></tr></thead><tbody><tr><td>a&#8203;_string</td><td>Hello</td></tr><tr><td>a&#8203;_number</td><td>87</td></tr></tbody></table>"
105+
]
106+
},
107+
"execution_count": 7,
108+
"metadata": {},
109+
"output_type": "execute_result"
110+
}
111+
],
78112
"source": [
79113
"// @NotebookService nb\n",
80114
"a_groovy_dict = [a_string: 'Hello', a_number: 87]\n",
81115
"nb.display(a_groovy_dict)"
82116
]
83117
},
84118
{
85-
"cell_type": "markdown",
119+
"cell_type": "code",
120+
"execution_count": 8,
86121
"metadata": {},
122+
"outputs": [
123+
{
124+
"name": "stdout",
125+
"output_type": "stream",
126+
"text": [
127+
"Test python language\n",
128+
"2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) \n",
129+
"[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]\n"
130+
]
131+
},
132+
{
133+
"data": {
134+
"text/plain": [
135+
"No Outputs"
136+
]
137+
},
138+
"execution_count": 8,
139+
"metadata": {},
140+
"output_type": "execute_result"
141+
}
142+
],
87143
"source": [
88144
"#!python\n",
89145
"import sys\n",
@@ -92,22 +148,66 @@
92148
]
93149
},
94150
{
95-
"cell_type": "markdown",
151+
"cell_type": "code",
152+
"execution_count": 9,
96153
"metadata": {},
154+
"outputs": [
155+
{
156+
"data": {
157+
"text/plain": [
158+
"No Outputs"
159+
]
160+
},
161+
"execution_count": 9,
162+
"metadata": {},
163+
"output_type": "execute_result"
164+
}
165+
],
97166
"source": [
98167
"#!groovy"
99168
]
100169
},
101170
{
102-
"cell_type": "markdown",
171+
"cell_type": "code",
172+
"execution_count": 10,
103173
"metadata": {},
174+
"outputs": [
175+
{
176+
"name": "stdout",
177+
"output_type": "stream",
178+
"text": [
179+
"This is groovy code\n"
180+
]
181+
}
182+
],
104183
"source": [
105184
"println \"This is groovy code\""
106185
]
107186
},
108187
{
109-
"cell_type": "markdown",
188+
"cell_type": "code",
189+
"execution_count": 11,
110190
"metadata": {},
191+
"outputs": [
192+
{
193+
"name": "stdout",
194+
"output_type": "stream",
195+
"text": [
196+
"Hello\n",
197+
"87\n"
198+
]
199+
},
200+
{
201+
"data": {
202+
"text/plain": [
203+
"No Outputs"
204+
]
205+
},
206+
"execution_count": 11,
207+
"metadata": {},
208+
"output_type": "execute_result"
209+
}
210+
],
111211
"source": [
112212
"#!python\n",
113213
"print(a_groovy_dict[\"a_string\"])\n",
@@ -119,7 +219,7 @@
119219
},
120220
{
121221
"cell_type": "code",
122-
"execution_count": 3,
222+
"execution_count": 12,
123223
"metadata": {},
124224
"outputs": [
125225
{
@@ -128,7 +228,7 @@
128228
"<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Key</th><th>Value</th></tr></thead><tbody><tr><td>:a</td><td>4</td></tr><tr><td>:e</td><td>&lt;none&gt;</td></tr></tbody></table>"
129229
]
130230
},
131-
"execution_count": 3,
231+
"execution_count": 12,
132232
"metadata": {},
133233
"output_type": "execute_result"
134234
}
@@ -140,7 +240,7 @@
140240
},
141241
{
142242
"cell_type": "code",
143-
"execution_count": 4,
243+
"execution_count": 13,
144244
"metadata": {},
145245
"outputs": [
146246
{
@@ -149,7 +249,7 @@
149249
"<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Key</th><th>Value</th></tr></thead><tbody><tr><td>a</td><td>4</td></tr><tr><td>e</td><td>&lt;none&gt;</td></tr></tbody></table>"
150250
]
151251
},
152-
"execution_count": 4,
252+
"execution_count": 13,
153253
"metadata": {},
154254
"output_type": "execute_result"
155255
}
@@ -161,7 +261,7 @@
161261
},
162262
{
163263
"cell_type": "code",
164-
"execution_count": 5,
264+
"execution_count": 14,
165265
"metadata": {},
166266
"outputs": [
167267
{
@@ -170,7 +270,7 @@
170270
"<style>table.converted {color: #333; font-family: Helvetica, Arial, sans-serif; border-collapse: collapse; border-spacing: 0;}table.converted td, table.converted th {border: 1px solid #C9C7C7;}table.converted th, table.converted td.rowLabel {background: #626262; color: #FFFFFF; font-weight: bold; text-align: left;}table.converted td {text-align: left;}table.converted tr:nth-child(even) {background: #F3F3F3;}table.converted tr:nth-child(odd) {background: #FFFFFF;}table.converted tbody tr:hover {background: #BDF4B5;}table.converted td.rowLabel, table.converted th.rowLabel {display: none;}</style><table class =\"converted\"><thead><tr><th>Salutation</th><th>Valediction</th></tr></thead><tbody><tr><td>hello</td><td>goodbye</td></tr><tr><td>hi</td><td>bye</td></tr><tr><td>hey</td><td>&lt;none&gt;</td></tr></tbody></table>"
171271
]
172272
},
173-
"execution_count": 5,
273+
"execution_count": 14,
174274
"metadata": {},
175275
"output_type": "execute_result"
176276
}
@@ -184,7 +284,7 @@
184284
],
185285
"metadata": {
186286
"kernelspec": {
187-
"display_name": "Scijava",
287+
"display_name": "SciJava",
188288
"language": "groovy",
189289
"name": "scijava"
190290
},

0 commit comments

Comments
 (0)