Skip to content

Commit

Permalink
Bootstrap carthage only when needed in circle.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Jan 30, 2016
1 parent 69a3ec3 commit 7b3a04e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -51,6 +51,7 @@ playground.xcworkspace
# Carthage/Checkouts

Carthage/Build
Carthage/Cartfile.resolved

# fastlane
#
Expand Down
4 changes: 4 additions & 0 deletions bin/carthage-bootstrap
@@ -0,0 +1,4 @@
#!/bin/sh

carthage bootstrap --platform tvos
cp Cartfile.resolved Carthage
5 changes: 5 additions & 0 deletions bin/carthage-bootstrap-if-needed
@@ -0,0 +1,5 @@
#!/bin/sh

if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
bin/carthage-bootstrap
fi
7 changes: 4 additions & 3 deletions circle.yml
Expand Up @@ -2,9 +2,10 @@ machine:
xcode:
version: 7.2
dependencies:
pre:
- brew install carthage
- carthage bootstrap --platform tvos
override:
- bin/carthage-bootstrap-if-needed
cache_directories:
- Carthage
test:
override:
- xctool
Expand Down

0 comments on commit 7b3a04e

Please sign in to comment.