Skip to content

Commit b49959c

Browse files
committed
Cache Carthage builds.
1 parent b1bde74 commit b49959c

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ Pods/
2929
#
3030
# Add this line if you want to avoid checking in source code from Carthage dependencies.
3131
#
32-
Carthage/Checkouts
33-
Carthage/Build
32+
Carthage
3433
.DS_Store
3534

3635
# SPM

Carthage/Checkouts/Nimble

Submodule Nimble deleted from 38c9ab0

Carthage/Checkouts/Quick

Submodule Quick deleted from 0ff81f2

Carthage/Checkouts/RxSwift

Submodule RxSwift deleted from 12cccb1

bin/bootstrap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
carthage bootstrap
4+
cp Cartfile.resolved Carthage

bin/bootstrap-if-needed

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# Borrowed from https://robots.thoughtbot.com/caching-carthage-con-circleci
4+
5+
if ! cmp -s Cartfile.resolved Carthage/Cartfile.resolved; then
6+
bin/bootstrap
7+
fi
8+

circle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ machine:
55
LANG: en_US.UTF-8
66
dependencies:
77
override:
8-
- echo "Skipping CocoaPods Specs install."
9-
- carthage version
10-
- carthage bootstrap
8+
- bin/bootstrap-if-needed
9+
cache_directories:
10+
- "Carthage"
1111
test:
1212
override:
1313
- set -o pipefail

0 commit comments

Comments
 (0)