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

Commit 607a94b

Browse files
committed
Update CocoaPods repo and gems when running on Travis.
1 parent c53f309 commit 607a94b

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.travis.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,23 @@ env:
1313
- TEST_TYPE=iOS
1414
- TEST_TYPE=CocoaPods
1515
- TEST_TYPE=Package
16+
install:
17+
- |
18+
bundle install
19+
pod repo update --silent
20+
pod install
1621
script:
1722
- |
18-
if [ "$TEST_TYPE" = iOS ]; then
19-
set -o pipefail
20-
xcodebuild test -workspace ParseFacebookUtils.xcworkspace -sdk iphonesimulator -scheme ParseFacebookUtilsV4-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
21-
elif [ "$TEST_TYPE" = CocoaPods ]; then
22-
pod lib lint --use-libraries ParseFacebookUtilsV4.podspec
23-
elif [ "$TEST_TYPE" = Package ]; then
24-
bundle exec rake package:frameworks
25-
fi
23+
if [ "$TEST_TYPE" = iOS ]; then
24+
set -o pipefail
25+
xcodebuild test -workspace ParseFacebookUtils.xcworkspace -sdk iphonesimulator -scheme ParseFacebookUtilsV4-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 4s" -destination "platform=iOS Simulator,name=iPhone 6 Plus" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty
26+
elif [ "$TEST_TYPE" = CocoaPods ]; then
27+
pod lib lint --use-libraries ParseFacebookUtilsV4.podspec
28+
elif [ "$TEST_TYPE" = Package ]; then
29+
bundle exec rake package:frameworks
30+
fi
2631
after_success:
2732
- |
28-
if [ "$TEST_TYPE" = iOS ]; then
29-
bash <(curl -s https://codecov.io/bash)
30-
fi
33+
if [ "$TEST_TYPE" = iOS ]; then
34+
bash <(curl -s https://codecov.io/bash)
35+
fi

0 commit comments

Comments
 (0)