From 7b2f97e3868e4c233a952c5f619ae9fecdac06c4 Mon Sep 17 00:00:00 2001 From: Tim <0xtimc@gmail.com> Date: Fri, 20 Oct 2017 17:31:32 +0100 Subject: [PATCH] Fix travis on macOS --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f49aa18..6dc9030 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,7 @@ dist: trusty osx_image: xcode9 before_install: - if [ $TRAVIS_OS_NAME == "osx" ]; then - brew tap vapor/tap; - brew update; - brew install vapor; + HOMEBREW_NO_AUTO_UPDATE=1 brew install vapor/tap/vapor; else eval "$(curl -sL https://apt.vapor.sh)"; sudo apt-get install vapor; @@ -21,6 +19,13 @@ script: - swift build - swift build -c release - swift test + - if [ $TRAVIS_OS_NAME != "osx" ]; then + sudo apt-get remove vapor; + sudo apt-get install swift=3.1.1; + swift build; + swift build -c release; + swift test; + fi after_success: - - eval "$(curl -sL https://swift.vapor.sh/codecov)" + - eval "$(curl -sL https://raw.githubusercontent.com/vapor-community/swift/master/codecov)"