forked from onevcat/Kingfisher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (29 loc) · 1.06 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
language: objective-c
os: osx
osx_image: xcode8.3
env:
matrix:
- TEST_TYPE=iOS
- TEST_TYPE=macOS
- TEST_TYPE=tvOS
-before_install:
- |
gem install xcpretty -N --no-ri --no-rdoc
script:
- |
./setup.sh
if [ "$TEST_TYPE" = iOS ]; then
set -o pipefail
xcodebuild clean test -workspace Kingfisher.xcworkspace -scheme Kingfisher -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.1' -enableCodeCoverage YES | xcpretty
elif [ "$TEST_TYPE" = macOS ]; then
set -o pipefail
xcodebuild clean test -workspace Kingfisher.xcworkspace -scheme Kingfisher-macOS -sdk macosx -enableCodeCoverage YES | xcpretty
elif [ "$TEST_TYPE" = tvOS ]; then
set -o pipefail
xcodebuild clean test -workspace Kingfisher.xcworkspace -scheme Kingfisher-tvOS -destination "platform=tvOS Simulator,name=Apple TV 1080p" -enableCodeCoverage YES | xcpretty
fi
after_success:
- sleep 5
- if [ "$TEST_TYPE" = iOS ] || [ "$TEST_TYPE" = macOS ] || [ "$TEST_TYPE" = tvOS ]; then
bash <(curl -s https://codecov.io/bash)
fi