Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Travis-CI run using Xcode7.1 and run tvOS tests. #172

Merged
merged 1 commit into from
Oct 22, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,41 @@ branches:
- master
language: objective-c
os: osx
osx_image: xcode7
osx_image: xcode7.1
cache:
- cocoapods
env:
matrix:
- TEST_TYPE=ios
- TEST_TYPE=osx
- TEST_TYPE=cocoapods
- TEST_TYPE=iOS
- TEST_TYPE=OSX
- TEST_TYPE=tvOS
- TEST_TYPE=CocoaPods
before_install:
- |
if [ "$TEST_TYPE" = ios ] || [ "$TEST_TYPE" = osx ]; then
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = OSX ] || [ "$TEST_TYPE" = tvOS ]; then
gem install xcpretty -N --no-ri --no-rdoc
elif [ "$TEST_TYPE" = cocoapods ]; then
elif [ "$TEST_TYPE" = CocoaPods ]; then
gem install cocoapods --pre --quiet --no-ri --no-rdoc
pod setup --silent
pod repo update --silent
fi
script:
- |
if [ "$TEST_TYPE" = ios ]; then
if [ "$TEST_TYPE" = iOS ]; then
set -o pipefail
xcodebuild test -project Bolts.xcodeproj -sdk iphonesimulator -scheme Bolts-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 -c
elif [ "$TEST_TYPE" = osx ]; then
elif [ "$TEST_TYPE" = OSX ]; then
set -o pipefail
xcodebuild test -project Bolts.xcodeproj -sdk macosx -scheme Bolts-OSX -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
elif [ "$TEST_TYPE" = cocoapods ]; then
elif [ "$TEST_TYPE" = OSX ]; then
set -o pipefail
xcodebuild test -project Bolts.xcodeproj -scheme Bolts-tvOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
elif [ "$TEST_TYPE" = CocoaPods ]; then
pod lib lint Bolts.podspec
pod lib lint --use-libraries Bolts.podspec
fi
after_success:
- |
if [ "$TEST_TYPE" = ios ] || [ "$TEST_TYPE" = osx ]; then
if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = OSX ] || [ "$TEST_TYPE" = tvOS ]; then
bash <(curl -s https://codecov.io/bash)
fi