@@ -39,29 +39,42 @@ jobs:
3939 docker pull kitware/itk-js-vtk:latest
4040 ./src/Docker/itk-js-vtk/build.sh --cache-from=insighttoolkit/itk-js:latest,kitware/itk-js-vtk:latest
4141 fi
42+ - run :
43+ name : Install node@v10.15.3
44+ command : |
45+ . ./.circleci/load-nvm.sh
46+ nvm install v10.15.3
47+ nvm alias default v10.15.3
4248 - run :
4349 name : Install Node packages
4450 command : |
51+ . ./.circleci/load-nvm.sh
52+ npm --version
53+ node --version
4554 npm install
4655 - run :
4756 name : Build
4857 command : |
58+ . ./.circleci/load-nvm.sh
4959 npm run build
5060 - run :
5161 name : Test
5262 command : |
63+ . ./.circleci/load-nvm.sh
5364 google-chrome --version
5465 npm run test
5566 - run :
5667 name : Test building a pipeline
5768 command : |
69+ . ./.circleci/load-nvm.sh
5870 cd test/MedianFilterPipeline
5971 docker run --rm insighttoolkit/itk-js > ./itk-js
6072 chmod +x ./itk-js
6173 ./itk-js web-build
6274 - deploy :
6375 name : Publish docs
6476 command : |
77+ . ./.circleci/load-nvm.sh
6578 if [ "${CIRCLE_BRANCH}" == "master" ]; then
6679 git config --global user.name "Circle CI"
6780 git config --global user.email "robot@itk.org"
@@ -82,51 +95,71 @@ jobs:
8295 npm run test
8396
8497 test-umd-example :
85- machine : true
98+ machine :
99+ image : ubuntu-1604:201903-01
100+ docker_layer_caching : true
86101 steps :
87102 - checkout
88103 - run :
89104 name : Test UMD example
90105 no_output_timeout : 0.5h
91106 command : |
107+ . ./.circleci/load-nvm.sh
108+ nvm install v10.15.3
109+ nvm alias default v10.15.3
92110 cd examples/UMD
93111 npm install
94112 ./test/run.sh
95113
96114 build-test-webpack-example :
97- machine : true
115+ machine :
116+ image : ubuntu-1604:201903-01
117+ docker_layer_caching : true
98118 steps :
99119 - checkout
100120 - run :
101121 name : Test Webpack example
102122 no_output_timeout : 0.5h
103123 command : |
124+ . ./.circleci/load-nvm.sh
125+ nvm install v10.15.3
126+ nvm alias default v10.15.3
104127 cd examples/Webpack
105128 npm install
106129 npm run build
107130 npm run test
108131
109132 build-test-unpkgio-example :
110- machine : true
133+ machine :
134+ image : ubuntu-1604:201903-01
135+ docker_layer_caching : true
111136 steps :
112137 - checkout
113138 - run :
114139 name : Test Unpkg IO example
115140 no_output_timeout : 0.5h
116141 command : |
142+ . ./.circleci/load-nvm.sh
143+ nvm install v10.15.3
144+ nvm alias default v10.15.3
117145 cd examples/UnpkgIO
118146 npm install
119147 npm run build
120148 npm run test
121149
122150 build-test-nodejs-hello-world-example :
123- machine : true
151+ machine :
152+ image : ubuntu-1604:201903-01
153+ docker_layer_caching : true
124154 steps :
125155 - checkout
126156 - run :
127157 name : Test Node.js Hello World examlpe
128158 no_output_timeout : 0.5h
129159 command : |
160+ . ./.circleci/load-nvm.sh
161+ nvm install v10.15.3
162+ nvm alias default v10.15.3
130163 cd examples/NodeHelloWorld
131164 npm install
132165 npm run build
0 commit comments