Skip to content

Commit

Permalink
Fix travis on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Oct 20, 2017
1 parent bd3820a commit 7b2f97e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)"

0 comments on commit 7b2f97e

Please sign in to comment.