@@ -39,29 +39,42 @@ jobs:
39
39
docker pull kitware/itk-js-vtk:latest
40
40
./src/Docker/itk-js-vtk/build.sh --cache-from=insighttoolkit/itk-js:latest,kitware/itk-js-vtk:latest
41
41
fi
42
+ - run :
43
+
44
+ command : |
45
+ . ./.circleci/load-nvm.sh
46
+ nvm install v10.15.3
47
+ nvm alias default v10.15.3
42
48
- run :
43
49
name : Install Node packages
44
50
command : |
51
+ . ./.circleci/load-nvm.sh
52
+ npm --version
53
+ node --version
45
54
npm install
46
55
- run :
47
56
name : Build
48
57
command : |
58
+ . ./.circleci/load-nvm.sh
49
59
npm run build
50
60
- run :
51
61
name : Test
52
62
command : |
63
+ . ./.circleci/load-nvm.sh
53
64
google-chrome --version
54
65
npm run test
55
66
- run :
56
67
name : Test building a pipeline
57
68
command : |
69
+ . ./.circleci/load-nvm.sh
58
70
cd test/MedianFilterPipeline
59
71
docker run --rm insighttoolkit/itk-js > ./itk-js
60
72
chmod +x ./itk-js
61
73
./itk-js web-build
62
74
- deploy :
63
75
name : Publish docs
64
76
command : |
77
+ . ./.circleci/load-nvm.sh
65
78
if [ "${CIRCLE_BRANCH}" == "master" ]; then
66
79
git config --global user.name "Circle CI"
67
80
git config --global user.email "[email protected] "
@@ -82,51 +95,71 @@ jobs:
82
95
npm run test
83
96
84
97
test-umd-example :
85
- machine : true
98
+ machine :
99
+ image : ubuntu-1604:201903-01
100
+ docker_layer_caching : true
86
101
steps :
87
102
- checkout
88
103
- run :
89
104
name : Test UMD example
90
105
no_output_timeout : 0.5h
91
106
command : |
107
+ . ./.circleci/load-nvm.sh
108
+ nvm install v10.15.3
109
+ nvm alias default v10.15.3
92
110
cd examples/UMD
93
111
npm install
94
112
./test/run.sh
95
113
96
114
build-test-webpack-example :
97
- machine : true
115
+ machine :
116
+ image : ubuntu-1604:201903-01
117
+ docker_layer_caching : true
98
118
steps :
99
119
- checkout
100
120
- run :
101
121
name : Test Webpack example
102
122
no_output_timeout : 0.5h
103
123
command : |
124
+ . ./.circleci/load-nvm.sh
125
+ nvm install v10.15.3
126
+ nvm alias default v10.15.3
104
127
cd examples/Webpack
105
128
npm install
106
129
npm run build
107
130
npm run test
108
131
109
132
build-test-unpkgio-example :
110
- machine : true
133
+ machine :
134
+ image : ubuntu-1604:201903-01
135
+ docker_layer_caching : true
111
136
steps :
112
137
- checkout
113
138
- run :
114
139
name : Test Unpkg IO example
115
140
no_output_timeout : 0.5h
116
141
command : |
142
+ . ./.circleci/load-nvm.sh
143
+ nvm install v10.15.3
144
+ nvm alias default v10.15.3
117
145
cd examples/UnpkgIO
118
146
npm install
119
147
npm run build
120
148
npm run test
121
149
122
150
build-test-nodejs-hello-world-example :
123
- machine : true
151
+ machine :
152
+ image : ubuntu-1604:201903-01
153
+ docker_layer_caching : true
124
154
steps :
125
155
- checkout
126
156
- run :
127
157
name : Test Node.js Hello World examlpe
128
158
no_output_timeout : 0.5h
129
159
command : |
160
+ . ./.circleci/load-nvm.sh
161
+ nvm install v10.15.3
162
+ nvm alias default v10.15.3
130
163
cd examples/NodeHelloWorld
131
164
npm install
132
165
npm run build
0 commit comments