-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
24 lines (21 loc) · 947 Bytes
/
.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
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
language: objective-c
osx_image: xcode7.3
cache: cocoapods
podfile: Podfile
before_install:
- gem install cocoapods # Since Travis is not always on latest version
- pod repo update
- pod install
- xcrun simctl list # list devices
env:
- DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=9.1' UI=true
- DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=8.4'
- DESTINATION='platform=iOS Simulator,name=iPad Air,OS=9.1' UI=true
- DESTINATION='platform=iOS Simulator,name=iPad Air,OS=8.4'
script:
- set -o pipefail
- xcodebuild -destination "$DESTINATION" -workspace Xcuit.xcworkspace -scheme Xcuit -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty
- if [ $UI ]; then xcodebuild -destination "$DESTINATION" -workspace Xcuit.xcworkspace -scheme XcuitUITests -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty; fi