From 67607eba8b5075b79f12e807a15154111955dcd4 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Tue, 27 Feb 2018 17:28:09 -0500 Subject: [PATCH] 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 ;) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5919ba6d..99a4c47f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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