Skip to content

Commit d2916f4

Browse files
authored
Merge pull request #244 from thewtex/npm-audit
chore(Dependencies): Update karma to 4.1.0
2 parents b2af224 + 616d9af commit d2916f4

File tree

4 files changed

+190
-554
lines changed

4 files changed

+190
-554
lines changed

.circleci/config.yml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ ignore-ghpages: &ignore-ghpages
77
version: 2
88
jobs:
99
build-test-deploy:
10-
machine: true
10+
machine:
11+
image: ubuntu-1604:201903-01
12+
docker_layer_caching: true
1113
steps:
1214
- checkout
1315
- run:
@@ -37,29 +39,42 @@ jobs:
3739
docker pull kitware/itk-js-vtk:latest
3840
./src/Docker/itk-js-vtk/build.sh --cache-from=insighttoolkit/itk-js:latest,kitware/itk-js-vtk:latest
3941
fi
42+
- run:
43+
name: Install [email protected]
44+
command: |
45+
. ./.circleci/load-nvm.sh
46+
nvm install v10.15.3
47+
nvm alias default v10.15.3
4048
- run:
4149
name: Install Node packages
4250
command: |
51+
. ./.circleci/load-nvm.sh
52+
npm --version
53+
node --version
4354
npm install
4455
- run:
4556
name: Build
4657
command: |
58+
. ./.circleci/load-nvm.sh
4759
npm run build
4860
- run:
4961
name: Test
5062
command: |
63+
. ./.circleci/load-nvm.sh
5164
google-chrome --version
5265
npm run test
5366
- run:
5467
name: Test building a pipeline
5568
command: |
69+
. ./.circleci/load-nvm.sh
5670
cd test/MedianFilterPipeline
5771
docker run --rm insighttoolkit/itk-js > ./itk-js
5872
chmod +x ./itk-js
5973
./itk-js web-build
6074
- deploy:
6175
name: Publish docs
6276
command: |
77+
. ./.circleci/load-nvm.sh
6378
if [ "${CIRCLE_BRANCH}" == "master" ]; then
6479
git config --global user.name "Circle CI"
6580
git config --global user.email "[email protected]"
@@ -80,51 +95,71 @@ jobs:
8095
npm run test
8196
8297
test-umd-example:
83-
machine: true
98+
machine:
99+
image: ubuntu-1604:201903-01
100+
docker_layer_caching: true
84101
steps:
85102
- checkout
86103
- run:
87104
name: Test UMD example
88105
no_output_timeout: 0.5h
89106
command: |
107+
. ./.circleci/load-nvm.sh
108+
nvm install v10.15.3
109+
nvm alias default v10.15.3
90110
cd examples/UMD
91111
npm install
92112
./test/run.sh
93113
94114
build-test-webpack-example:
95-
machine: true
115+
machine:
116+
image: ubuntu-1604:201903-01
117+
docker_layer_caching: true
96118
steps:
97119
- checkout
98120
- run:
99121
name: Test Webpack example
100122
no_output_timeout: 0.5h
101123
command: |
124+
. ./.circleci/load-nvm.sh
125+
nvm install v10.15.3
126+
nvm alias default v10.15.3
102127
cd examples/Webpack
103128
npm install
104129
npm run build
105130
npm run test
106131
107132
build-test-unpkgio-example:
108-
machine: true
133+
machine:
134+
image: ubuntu-1604:201903-01
135+
docker_layer_caching: true
109136
steps:
110137
- checkout
111138
- run:
112139
name: Test Unpkg IO example
113140
no_output_timeout: 0.5h
114141
command: |
142+
. ./.circleci/load-nvm.sh
143+
nvm install v10.15.3
144+
nvm alias default v10.15.3
115145
cd examples/UnpkgIO
116146
npm install
117147
npm run build
118148
npm run test
119149
120150
build-test-nodejs-hello-world-example:
121-
machine: true
151+
machine:
152+
image: ubuntu-1604:201903-01
153+
docker_layer_caching: true
122154
steps:
123155
- checkout
124156
- run:
125157
name: Test Node.js Hello World examlpe
126158
no_output_timeout: 0.5h
127159
command: |
160+
. ./.circleci/load-nvm.sh
161+
nvm install v10.15.3
162+
nvm alias default v10.15.3
128163
cd examples/NodeHelloWorld
129164
npm install
130165
npm run build

.circleci/load-nvm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# load-nvm.sh
2+
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
3+
export NVM_DIR="/opt/circleci/.nvm"
4+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

0 commit comments

Comments
 (0)