File tree 2 files changed +12
-21
lines changed
2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change 35
35
docker :
36
36
# need '-browsers' version to test in real (xvfb-wrapped) browsers
37
37
- image : circleci/node:12.22.1-browsers
38
+ environment :
39
+ # Alaska time (arbitrary timezone to test date logic)
40
+ TZ : " America/Anchorage"
38
41
parallelism : 8
39
42
working_directory : ~/plotly.js
40
43
steps :
48
51
docker :
49
52
# need '-browsers' version to test in real (xvfb-wrapped) browsers
50
53
- image : circleci/node:12.22.1-browsers
54
+ environment :
55
+ # Alaska time (arbitrary timezone to test date logic)
56
+ TZ : " America/Anchorage"
51
57
parallelism : 8
52
58
working_directory : ~/plotly.js
53
59
steps :
61
67
docker :
62
68
# need '-browsers' version to test in real (xvfb-wrapped) browsers
63
69
- image : circleci/node:12.22.1-browsers
70
+ environment :
71
+ # Alaska time (arbitrary timezone to test date logic)
72
+ TZ : " America/Anchorage"
64
73
working_directory : ~/plotly.js
65
74
steps :
66
75
- attach_workspace :
73
82
docker :
74
83
# need '-browsers' version to test in real (xvfb-wrapped) browsers
75
84
- image : circleci/node:12.22.1-browsers
85
+ environment :
86
+ # Alaska time (arbitrary timezone to test date logic)
87
+ TZ : " America/Anchorage"
76
88
working_directory : ~/plotly.js
77
89
steps :
78
90
- attach_workspace :
Original file line number Diff line number Diff line change @@ -33,24 +33,9 @@ retry () {
33
33
fi
34
34
}
35
35
36
- set_timezone () {
37
- # Alaska time (arbitrary timezone to test date logic)
38
- TZ=" America/Anchorage"
39
-
40
- echo " set timezone to $TZ "
41
- sudo cp /usr/share/zoneinfo/$TZ /etc/localtime
42
-
43
- echo " display date in timezone"
44
- date
45
-
46
- export TZ
47
- }
48
-
49
36
case $1 in
50
37
51
38
no-gl-jasmine)
52
- set_timezone
53
-
54
39
SUITE=$( circleci tests glob " $ROOT /test/jasmine/tests/*" | circleci tests split)
55
40
MAX_AUTO_RETRY=2
56
41
retry npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
@@ -59,8 +44,6 @@ case $1 in
59
44
;;
60
45
61
46
webgl-jasmine)
62
- set_timezone
63
-
64
47
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split) )
65
48
for s in ${SHARDS[@]} ; do
66
49
MAX_AUTO_RETRY=2
@@ -71,8 +54,6 @@ case $1 in
71
54
;;
72
55
73
56
flaky-no-gl-jasmine)
74
- set_timezone
75
-
76
57
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split) )
77
58
78
59
for s in ${SHARDS[@]} ; do
@@ -84,8 +65,6 @@ case $1 in
84
65
;;
85
66
86
67
bundle-jasmine)
87
- set_timezone
88
-
89
68
npm run test-bundle || EXIT_STATE=$?
90
69
exit $EXIT_STATE
91
70
;;
You can’t perform that action at this time.
0 commit comments