travis: Attempt to cut down on flaky failures

Travis has been spuriously failing a LOT. Hopefully this reduces some of
those failures.
This commit is contained in:
James Shubin
2018-02-27 17:17:29 -05:00
parent ff69a82b57
commit 6e7a71d01a

View File

@@ -9,6 +9,8 @@ go_import_path: github.com/purpleidea/mgmt
sudo: true sudo: true
dist: trusty dist: trusty
before_install: before_install:
# as per a number of comments online, this might mitigate some flaky fails...
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
# apt update tends to be flaky in travis, retry up to 3 times on failure # apt update tends to be flaky in travis, retry up to 3 times on failure
# https://docs.travis-ci.com/user/common-build-problems/#travis_retry # https://docs.travis-ci.com/user/common-build-problems/#travis_retry
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then travis_retry travis_retry sudo apt update; fi - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then travis_retry travis_retry sudo apt update; fi