@@ -33,16 +33,23 @@ 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'
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
40
47
}
41
48
42
49
case $1 in
43
50
44
51
no-gl-jasmine)
45
- set_tz
52
+ set_timezone
46
53
47
54
SUITE=$( circleci tests glob " $ROOT /test/jasmine/tests/*" | circleci tests split)
48
55
MAX_AUTO_RETRY=2
@@ -52,7 +59,7 @@ case $1 in
52
59
;;
53
60
54
61
webgl-jasmine)
55
- set_tz
62
+ set_timezone
56
63
57
64
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split) )
58
65
for s in ${SHARDS[@]} ; do
@@ -64,7 +71,7 @@ case $1 in
64
71
;;
65
72
66
73
flaky-no-gl-jasmine)
67
- set_tz
74
+ set_timezone
68
75
69
76
SHARDS=($( node $ROOT /tasks/shard_jasmine_tests.js --limit=1 --tag=flaky | circleci tests split) )
70
77
@@ -76,6 +83,13 @@ case $1 in
76
83
exit $EXIT_STATE
77
84
;;
78
85
86
+ bundle-jasmine)
87
+ set_timezone
88
+
89
+ npm run test-bundle || EXIT_STATE=$?
90
+ exit $EXIT_STATE
91
+ ;;
92
+
79
93
make-baselines)
80
94
SUITE=$( find $ROOT /test/image/mocks/ -type f -printf " %f\n" | sed ' s/\.json$//1' | circleci tests split)
81
95
python3 test/image/make_baseline.py $SUITE || EXIT_STATE=$?
@@ -87,12 +101,6 @@ case $1 in
87
101
exit $EXIT_STATE
88
102
;;
89
103
90
- jasmine-bundle)
91
- set_tz
92
- npm run test-bundle || EXIT_STATE=$?
93
- exit $EXIT_STATE
94
- ;;
95
-
96
104
source-syntax)
97
105
npm run lint || EXIT_STATE=$?
98
106
npm run test-syntax || EXIT_STATE=$?
0 commit comments