@@ -31,10 +31,42 @@ jobs:
31
31
paths :
32
32
- plotly.js
33
33
34
+ timezone-jasmine :
35
+ docker :
36
+ # need '-browsers' version to test in real (xvfb-wrapped) browsers
37
+ - image : circleci/node:12.22.1-browsers
38
+ working_directory : ~/plotly.js
39
+ steps :
40
+ - attach_workspace :
41
+ at : ~/
42
+ - run :
43
+ name : Run hover_label test in UTC timezone
44
+ environment :
45
+ TZ : " UTC"
46
+ command : date && npm run test-jasmine hover_label
47
+ - run :
48
+ name : Run hover_label test in Europe/Berlin timezone
49
+ environment :
50
+ TZ : " Europe/Berlin"
51
+ command : date && npm run test-jasmine hover_label
52
+ - run :
53
+ name : Run hover_label test in Asia/Tokyo timezone
54
+ environment :
55
+ TZ : " Asia/Tokyo"
56
+ command : date && npm run test-jasmine hover_label
57
+ - run :
58
+ name : Run hover_label test in America/Toronto timezone
59
+ environment :
60
+ TZ : " America/Toronto"
61
+ command : date && npm run test-jasmine hover_label
62
+
34
63
no-gl-jasmine :
35
64
docker :
36
65
# need '-browsers' version to test in real (xvfb-wrapped) browsers
37
66
- image : circleci/node:12.22.1-browsers
67
+ environment :
68
+ # Alaska time (arbitrary timezone to test date logic)
69
+ TZ : " America/Anchorage"
38
70
parallelism : 8
39
71
working_directory : ~/plotly.js
40
72
steps :
48
80
docker :
49
81
# need '-browsers' version to test in real (xvfb-wrapped) browsers
50
82
- image : circleci/node:12.22.1-browsers
83
+ environment :
84
+ # Alaska time (arbitrary timezone to test date logic)
85
+ TZ : " America/Anchorage"
51
86
parallelism : 8
52
87
working_directory : ~/plotly.js
53
88
steps :
61
96
docker :
62
97
# need '-browsers' version to test in real (xvfb-wrapped) browsers
63
98
- image : circleci/node:12.22.1-browsers
99
+ environment :
100
+ # Alaska time (arbitrary timezone to test date logic)
101
+ TZ : " America/Anchorage"
64
102
working_directory : ~/plotly.js
65
103
steps :
66
104
- attach_workspace :
@@ -69,6 +107,21 @@ jobs:
69
107
name : Run jasmine tests (part C)
70
108
command : .circleci/test.sh flaky-no-gl-jasmine
71
109
110
+ bundle-jasmine :
111
+ docker :
112
+ # need '-browsers' version to test in real (xvfb-wrapped) browsers
113
+ - image : circleci/node:12.22.1-browsers
114
+ environment :
115
+ # Alaska time (arbitrary timezone to test date logic)
116
+ TZ : " America/Anchorage"
117
+ working_directory : ~/plotly.js
118
+ steps :
119
+ - attach_workspace :
120
+ at : ~/
121
+ - run :
122
+ name : Run jasmine tests (part D)
123
+ command : .circleci/test.sh bundle-jasmine
124
+
72
125
make-baselines :
73
126
parallelism : 4
74
127
docker :
@@ -162,18 +215,6 @@ jobs:
162
215
name : Run syntax tests on source files
163
216
command : .circleci/test.sh source-syntax
164
217
165
- jasmine-bundle :
166
- docker :
167
- # need '-browsers' version to test in real (xvfb-wrapped) browsers
168
- - image : circleci/node:12.22.1-browsers
169
- working_directory : ~/plotly.js
170
- steps :
171
- - attach_workspace :
172
- at : ~/
173
- - run :
174
- name : Run jasmine tests (part D)
175
- command : .circleci/test.sh jasmine-bundle
176
-
177
218
publish-dist :
178
219
docker :
179
220
- image : circleci/node:12.22.1
@@ -234,6 +275,9 @@ jobs:
234
275
- run :
235
276
name : Test plotly bundles againt unexpected characters
236
277
command : npm run no-bad-char
278
+ - run :
279
+ name : Display function constructors in plotly.js bundle
280
+ command : npm run log-new-func
237
281
- run :
238
282
name : Test certain bundles against function constructors
239
283
command : npm run no-new-func
@@ -246,7 +290,10 @@ workflows:
246
290
build-and-test :
247
291
jobs :
248
292
- install-and-cibuild
249
- - jasmine-bundle :
293
+ - timezone-jasmine :
294
+ requires :
295
+ - install-and-cibuild
296
+ - bundle-jasmine :
250
297
requires :
251
298
- install-and-cibuild
252
299
- no-gl-jasmine :
0 commit comments