File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 53
53
- checkout
54
54
- attach_workspace :
55
55
at : ~/plotly.js
56
- - run :
57
- name : Set timezone to Alaska time (arbitrary timezone to test date logic)
58
- command : |
59
- sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
60
- export TZ='America/Anchorage'
61
56
- run :
62
57
name : Run jasmine tests (batch 1)
63
58
command : ./.circleci/test.sh jasmine
71
66
- checkout
72
67
- attach_workspace :
73
68
at : ~/plotly.js
74
- - run :
75
- name : Set timezone to Alaska time (arbitrary timezone to test date logic)
76
- command : |
77
- sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
78
- export TZ='America/Anchorage'
79
69
- run :
80
70
name : Run jasmine tests (batch 2)
81
71
command : ./.circleci/test.sh jasmine2
Original file line number Diff line number Diff line change @@ -33,16 +33,27 @@ retry () {
33
33
fi
34
34
}
35
35
36
+ # set timezone to Alaska time (arbitrary timezone to test date logic)
37
+ set_tz () {
38
+ sudo cp /usr/share/zoneinfo/America/Anchorage /etc/localtime
39
+ export TZ=' America/Anchorage'
40
+ }
41
+
36
42
case $1 in
37
43
38
44
jasmine)
45
+ set_tz
46
+
39
47
npm run test-jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
40
48
retry npm run test-jasmine -- --tags=flaky --skip-tags=noCI
41
49
npm run test-bundle || EXIT_STATE=$?
50
+
42
51
exit $EXIT_STATE
43
52
;;
44
53
45
54
jasmine2)
55
+ set_tz
56
+
46
57
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --tag=gl) )
47
58
48
59
for s in ${SHARDS[@]} ; do
You can’t perform that action at this time.
0 commit comments