Skip to content
This repository was archived by the owner on Jan 16, 2021. It is now read-only.

Commit 8ec335e

Browse files
committed
Add Carthage to Travis-CI.
1 parent b594d27 commit 8ec335e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.travis.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,32 @@ env:
1010
- LANG=en_US.UTF-8
1111
matrix:
1212
- TEST_TYPE=iOS
13-
- TEST_TYPE=CocoaPods
1413
- TEST_TYPE=Package
14+
- TEST_TYPE=CocoaPods
15+
- TEST_TYPE=Carthage
16+
install:
17+
- |
18+
if [ "$TEST_TYPE" = Carthage ]; then
19+
brew update
20+
brew exec pod install
21+
elif [ "$TEST_TYPE" = Package ] || [ "$TEST_TYPE" = CocoaPods ]; then
22+
bundle install
23+
elif [ "$TEST_TYPE" = Carthage ]; then
24+
brew update
25+
brew install carthage || brew upgrade carthage
26+
fi
1527
script:
1628
- |
1729
if [ "$TEST_TYPE" = iOS ]; then
1830
set -o pipefail
1931
xcodebuild test -workspace ParseTwitterUtils.xcworkspace -sdk iphonesimulator -scheme ParseTwitterUtils-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6s" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
32+
elif [ "$TEST_TYPE" = Package ]; then
33+
bundle exec rake package:frameworks
2034
elif [ "$TEST_TYPE" = CocoaPods ]; then
2135
pod lib lint ParseTwitterUtils.podspec
2236
pod lib lint --use-libraries ParseTwitterUtils.podspec
23-
elif [ "$TEST_TYPE" = Package ]; then
24-
bundle exec rake package:frameworks
37+
elif [ "$TEST_TYPE" = Carthage ]; then
38+
carthage build --no-skip-current --platform iOS
2539
fi
2640
after_success:
2741
- |

0 commit comments

Comments
 (0)