File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 5353 - checkout
5454 - attach_workspace :
5555 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'
6156 - run :
6257 name : Run jasmine tests (batch 1)
6358 command : ./.circleci/test.sh jasmine
7166 - checkout
7267 - attach_workspace :
7368 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'
7969 - run :
8070 name : Run jasmine tests (batch 2)
8171 command : ./.circleci/test.sh jasmine2
Original file line number Diff line number Diff line change @@ -33,16 +33,27 @@ retry () {
3333 fi
3434}
3535
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+
3642case $1 in
3743
3844 jasmine)
45+ set_tz
46+
3947 npm run test-jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
4048 retry npm run test-jasmine -- --tags=flaky --skip-tags=noCI
4149 npm run test-bundle || EXIT_STATE=$?
50+
4251 exit $EXIT_STATE
4352 ;;
4453
4554 jasmine2)
55+ set_tz
56+
4657 SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --tag=gl) )
4758
4859 for s in ${SHARDS[@]} ; do
You can’t perform that action at this time.
0 commit comments