Skip to content

Commit 779afe6

Browse files
authored
Merge pull request #5486 from plotly/revisit-container-names
Revisit ci container naming - part 2
2 parents 352f4e4 + 5481dc5 commit 779afe6

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

.circleci/config.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2.0
88
# https://hub.docker.com/r/circleci/node/tags/
99

1010
jobs:
11-
build:
11+
install-and-cibuild:
1212
docker:
1313
- image: circleci/node:12.13.0
1414
working_directory: ~/plotly.js
@@ -40,7 +40,7 @@ jobs:
4040
paths:
4141
- plotly.js
4242

43-
no-gl-test-jasmine:
43+
no-gl-jasmine:
4444
docker:
4545
# need '-browsers' version to test in real (xvfb-wrapped) browsers
4646
- image: circleci/node:12.13.0-browsers
@@ -53,7 +53,7 @@ jobs:
5353
name: Run jasmine tests (part A)
5454
command: ./.circleci/test.sh no-gl-jasmine
5555

56-
webgl-test-jasmine:
56+
webgl-jasmine:
5757
docker:
5858
# need '-browsers' version to test in real (xvfb-wrapped) browsers
5959
- image: circleci/node:12.13.0-browsers
@@ -66,7 +66,7 @@ jobs:
6666
name: Run jasmine tests (part B)
6767
command: ./.circleci/test.sh webgl-jasmine
6868

69-
no-gl-flaky-test-jasmine:
69+
no-gl-flaky-jasmine:
7070
docker:
7171
# need '-browsers' version to test in real (xvfb-wrapped) browsers
7272
- image: circleci/node:12.13.0-browsers
@@ -78,7 +78,7 @@ jobs:
7878
name: Run jasmine tests (part C)
7979
command: ./.circleci/test.sh no-gl-flaky-jasmine
8080

81-
test-image:
81+
stable-image:
8282
docker:
8383
- image: plotly/testbed:latest
8484
parallelism: 4
@@ -98,7 +98,7 @@ jobs:
9898
path: build
9999
destination: /
100100

101-
flaky-test-image:
101+
flaky-image:
102102
docker:
103103
- image: plotly/testbed:latest
104104
working_directory: /var/www/streambed/image_server/plotly.js/
@@ -117,18 +117,18 @@ jobs:
117117
path: build
118118
destination: /
119119

120-
test-syntax:
120+
source-syntax:
121121
docker:
122122
- image: circleci/node:12.13.0
123123
working_directory: ~/plotly.js
124124
steps:
125125
- attach_workspace:
126126
at: ~/
127127
- run:
128-
name: Run syntax tests
128+
name: Run syntax tests on source files
129129
command: ./.circleci/test.sh syntax
130130

131-
test-bundle:
131+
jasmine-bundle:
132132
docker:
133133
# need '-browsers' version to test in real (xvfb-wrapped) browsers
134134
- image: circleci/node:12.13.0-browsers
@@ -137,10 +137,10 @@ jobs:
137137
- attach_workspace:
138138
at: ~/
139139
- run:
140-
name: Run test-bundle
141-
command: ./.circleci/test.sh bundle
140+
name: Run jasmine tests (part D)
141+
command: ./.circleci/test.sh jasmine-bundle
142142

143-
publish:
143+
publish-dist:
144144
docker:
145145
- image: circleci/node:12.13.0
146146
working_directory: ~/plotly.js
@@ -187,28 +187,28 @@ workflows:
187187
version: 2
188188
build-and-test:
189189
jobs:
190-
- build
191-
- test-bundle:
190+
- install-and-cibuild
191+
- jasmine-bundle:
192192
requires:
193-
- build
194-
- no-gl-test-jasmine:
193+
- install-and-cibuild
194+
- no-gl-jasmine:
195195
requires:
196-
- build
197-
- webgl-test-jasmine:
196+
- install-and-cibuild
197+
- webgl-jasmine:
198198
requires:
199-
- build
200-
- no-gl-flaky-test-jasmine:
199+
- install-and-cibuild
200+
- no-gl-flaky-jasmine:
201201
requires:
202-
- build
203-
- test-image:
202+
- install-and-cibuild
203+
- stable-image:
204204
requires:
205-
- build
206-
- flaky-test-image:
205+
- install-and-cibuild
206+
- flaky-image:
207207
requires:
208-
- build
209-
- test-syntax:
208+
- install-and-cibuild
209+
- source-syntax:
210210
requires:
211-
- build
212-
- publish:
211+
- install-and-cibuild
212+
- publish-dist:
213213
requires:
214-
- build
214+
- install-and-cibuild

.circleci/test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ case $1 in
7575
exit $EXIT_STATE
7676
;;
7777

78-
image)
78+
stable-image)
7979
SUITE=$(find $ROOT/test/image/mocks/ -type f -printf "%f\n" | circleci tests split)
8080
npm run test-image -- $SUITE --filter --skip-flaky || EXIT_STATE=$?
8181
exit $EXIT_STATE
@@ -88,13 +88,13 @@ case $1 in
8888
exit $EXIT_STATE
8989
;;
9090

91-
bundle)
91+
jasmine-bundle)
9292
set_tz
9393
npm run test-bundle || EXIT_STATE=$?
9494
exit $EXIT_STATE
9595
;;
9696

97-
syntax)
97+
source-syntax)
9898
npm run lint || EXIT_STATE=$?
9999
npm run test-syntax || EXIT_STATE=$?
100100
exit $EXIT_STATE

0 commit comments

Comments
 (0)