@@ -14,14 +14,10 @@ jobs:
1414 working_directory : ~/plotly.js
1515 steps :
1616 - checkout
17- - restore_cache :
18- keys :
19- - v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package-lock.json" }}
20- - v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-master-{{ checksum "package-lock.json" }}
2117 - run :
2218 name : Install dependencies
2319 command : |
24- npm install
20+ npm ci
2521 - run :
2622 name : List dependency versions
2723 command : |
@@ -33,26 +29,22 @@ jobs:
3329 command : |
3430 npm run pretest
3531 npm run cibuild
36- - save_cache :
37- paths :
38- - node_modules
39- key : v{{ .Environment.CIRCLE_CACHE_VERSION }}-deps-{{ .Branch }}-{{ checksum "package.json" }}
32+ - run :
33+ command : rm -rf .git
4034 - persist_to_workspace :
41- root : .
35+ root : /home/circleci
4236 paths :
43- - node_modules
44- - build
45- - dist
37+ - plotly.js
4638
4739 test-jasmine :
4840 docker :
4941 # need '-browsers' version to test in real (xvfb-wrapped) browsers
5042 - image : circleci/node:10.9.0-browsers
43+ parallelism : 2
5144 working_directory : ~/plotly.js
5245 steps :
53- - checkout
5446 - attach_workspace :
55- at : ~/plotly.js
47+ at : ~/
5648 - run :
5749 name : Run jasmine tests (batch 1)
5850 command : ./.circleci/test.sh jasmine
@@ -61,23 +53,35 @@ jobs:
6153 docker :
6254 # need '-browsers' version to test in real (xvfb-wrapped) browsers
6355 - image : circleci/node:10.9.0-browsers
56+ parallelism : 2
6457 working_directory : ~/plotly.js
6558 steps :
66- - checkout
6759 - attach_workspace :
68- at : ~/plotly.js
60+ at : ~/
6961 - run :
7062 name : Run jasmine tests (batch 2)
7163 command : ./.circleci/test.sh jasmine2
7264
65+ test-jasmine3 :
66+ docker :
67+ # need '-browsers' version to test in real (xvfb-wrapped) browsers
68+ - image : circleci/node:10.9.0-browsers
69+ working_directory : ~/plotly.js
70+ steps :
71+ - attach_workspace :
72+ at : ~/
73+ - run :
74+ name : Run jasmine tests (batch 3)
75+ command : ./.circleci/test.sh jasmine3
76+
7377 test-image :
7478 docker :
7579 - image : plotly/testbed:latest
80+ parallelism : 4
7681 working_directory : /var/www/streambed/image_server/plotly.js/
7782 steps :
78- - checkout
7983 - attach_workspace :
80- at : /var/www/streambed/image_server/plotly.js/
84+ at : /var/www/streambed/image_server/
8185 - run :
8286 name : Run and setup container
8387 command : |
9599 - image : plotly/testbed:latest
96100 working_directory : /var/www/streambed/image_server/plotly.js/
97101 steps :
98- - checkout
99102 - attach_workspace :
100- at : /var/www/streambed/image_server/plotly.js/
103+ at : /var/www/streambed/image_server/
101104 - run :
102105 name : Run and setup container
103106 command : |
@@ -115,21 +118,31 @@ jobs:
115118 - image : circleci/node:10.9.0
116119 working_directory : ~/plotly.js
117120 steps :
118- - checkout
119121 - attach_workspace :
120- at : ~/plotly.js
122+ at : ~/
121123 - run :
122124 name : Run syntax tests
123125 command : ./.circleci/test.sh syntax
124126
127+ test-bundle :
128+ docker :
129+ # need '-browsers' version to test in real (xvfb-wrapped) browsers
130+ - image : circleci/node:10.9.0-browsers
131+ working_directory : ~/plotly.js
132+ steps :
133+ - attach_workspace :
134+ at : ~/
135+ - run :
136+ name : Run test-bundle
137+ command : ./.circleci/test.sh bundle
138+
125139 publish :
126140 docker :
127141 - image : circleci/node:10.9.0
128142 working_directory : ~/plotly.js
129143 steps :
130- - checkout
131144 - attach_workspace :
132- at : ~/plotly.js
145+ at : ~/
133146 - run :
134147 name : Build dist/
135148 command : npm run build
@@ -159,12 +172,18 @@ workflows:
159172 build-and-test :
160173 jobs :
161174 - build
175+ - test-bundle :
176+ requires :
177+ - build
162178 - test-jasmine :
163179 requires :
164180 - build
165181 - test-jasmine2 :
166182 requires :
167183 - build
184+ - test-jasmine3 :
185+ requires :
186+ - build
168187 - test-image :
169188 requires :
170189 - build
0 commit comments