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