forked from facebookarchive/KVOController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
branches:
only:
- master
language: objective-c
os: osx
osx_image: xcode8.2
env:
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=CocoaPods
- TEST_TYPE=Carthage
install:
- |
if [ "$TEST_TYPE" = "iOS" ]; then
gem install xcpretty -N --no-ri --no-rdoc
gem update cocoapods
pod install
elif [ "$TEST_TYPE" = Carthage ]; then
brew install carthage || brew upgrade carthage
fi
script:
- |
if [ "$TEST_TYPE" = "iOS" ]; then
set -o pipefail
xcodebuild test -workspace FBKVOController.xcworkspace -scheme FBKVOController -sdk iphonesimulator -destination "platform=iOS Simulator,OS=latest,name=iPhone 4s" -destination "platform=iOS Simulator,OS=latest,name=iPad Air 2" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c
elif [ "$TEST_TYPE" = CocoaPods ]; then
pod lib lint KVOController.podspec
pod lib lint --use-libraries KVOController.podspec
elif [ "$TEST_TYPE" = Carthage ]; then
carthage build --no-skip-current
fi
after_success:
- |
if [ "$TEST_TYPE" = "iOS" ]; then
bash <(curl -s https://codecov.io/bash)
fi