Skip to content

Commit

Permalink
Run the Travis before_script section in a bounded retry loop (#9056)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Feb 8, 2020
1 parent 8e12567 commit e86256b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .ci/travis_before_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
try_count=0
while [ $try_count != 5 ]; do
julia --project=.ci/ -e 'using Pkg; Pkg.instantiate()'
if [ $? = 0 ]; then exit 0; fi
try_count = `expr $try_count + 1`
done
exit 1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matrix:
fast_finish: true
allow_failures:
- julia: nightly
before_script: julia --project=.ci/ -e 'using Pkg; Pkg.instantiate()'
before_script: .ci/travis_before_script.sh
script: julia --project=.ci/ --color=yes -e 'import RegistryCI; RegistryCI.test()'
branches:
only:
Expand Down

0 comments on commit e86256b

Please sign in to comment.