Skip to content

Commit 91caff1

Browse files
Merge branch 'master' into rangeslider-allow-zoom-on-oppaxis
2 parents b30167c + 41c067a commit 91caff1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1402
-910
lines changed

.circleci/test.sh

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,37 @@ set +e
55
set +o pipefail
66

77
EXIT_STATE=0
8+
MAX_AUTO_RETRY=5
9+
10+
# inspired by https://unix.stackexchange.com/a/82602
11+
retry () {
12+
local n=0
13+
14+
until [ $n -ge $MAX_AUTO_RETRY ]; do
15+
"$@" && break
16+
n=$[$n+1]
17+
echo ''
18+
echo run $n of $MAX_AUTO_RETRY failed, trying again ...
19+
echo ''
20+
sleep 15
21+
done
22+
23+
if [ $n -eq $MAX_AUTO_RETRY ]; then
24+
EXIT_STATE=1
25+
fi
26+
}
827

928
case $1 in
1029

1130
jasmine)
12-
npm run test-jasmine -- --skip-tags=gl,noCI || EXIT_STATE=$?
31+
npm run test-jasmine -- --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
1332
exit $EXIT_STATE
1433
;;
1534

1635
jasmine2)
17-
npm run test-jasmine -- --tags=gl --skip-tags=noCI || EXIT_STATE=$?
18-
npm run test-bundle || EXIT_STATE=$?
36+
npm run test-jasmine -- --tags=gl --skip-tags=noCI,flaky || EXIT_STATE=$?
37+
retry npm run test-jasmine -- --tags=flaky --skip-tags=noCI
38+
npm run test-bundle || EXIT_STATE=$?
1939
exit $EXIT_STATE
2040
;;
2141

0 commit comments

Comments
 (0)