forked from net-a-porter-mobile/XCTest-Gherkin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
20 lines (16 loc) · 822 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage
language: objective-c
osx_image: xcode9
before_install:
- gem install cocoapods --version 1.2.0
env:
- DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=11.0' UI=true
- DESTINATION='platform=iOS Simulator,name=iPhone 6,OS=10.3.1' UI=true
script:
- set -o pipefail
- travis/validate_carthage.sh
- xcodebuild -destination "$DESTINATION" -workspace Example/XCTest-Gherkin.xcworkspace -scheme XCTest-Gherkin-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty
- if [ $UI ]; then xcodebuild -destination "$DESTINATION" -workspace Example/XCTest-Gherkin.xcworkspace -scheme XCTest-Gherkin-Example-UI -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO test | xcpretty; fi
- pod lib lint --allow-warnings