travis: Fix the OSX builds
I don't use OSX, but here's a bit of sympathy for the poor travis OSX builder that can't understand apt ;)
This commit is contained in:
@@ -10,7 +10,7 @@ sudo: true
|
||||
dist: trusty
|
||||
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
|
||||
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6; fi
|
||||
# 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
|
||||
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then travis_retry travis_retry sudo apt update; fi
|
||||
|
||||
Reference in New Issue
Block a user