Skip to content

Commit

Permalink
Merge pull request #60 from hyperoslo/improve/travis-builds
Browse files Browse the repository at this point in the history
Improve build times on Travis
  • Loading branch information
vadymmarkov authored Oct 31, 2016
2 parents 72ac630 + 3a13f45 commit 5a48382
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
osx_image: xcode8
language: objective-c

cache:
directories:
- Carthage

before_install:
- brew update
- if brew outdated | grep -qx carthage; then brew upgrade carthage; fi
- travis_wait 35 carthage bootstrap --platform Mac,iOS,tvOS
- travis_wait 35; bin/bootstrap-if-needed

script:
- xcodebuild clean build -project Cache.xcodeproj -scheme "Cache-Mac" -sdk macosx | xcpretty
Expand Down
4 changes: 4 additions & 0 deletions bin/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

carthage bootstrap
cp Cartfile.resolved Carthage
5 changes: 5 additions & 0 deletions bin/bootstrap-if-needed
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
bin/bootstrap
fi

0 comments on commit 5a48382

Please sign in to comment.