-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (20 loc) · 848 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
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
osx_image: xcode8.1
env:
matrix:
- IOS_VERSION=10.1
- IOS_VERSION=9.3
script:
- export DEVICE_ID=$(instruments -s devices | grep "iPhone 5s (${IOS_VERSION}" | awk -F '[\[]' '{print $2}' | sed 's/\([-0-9A-F]*\).*/\1/')
- echo "Using device ${DEVICE_ID}"
- xargs open -a "simulator" --args -CurrentDeviceUDID $DEVICE_ID
- set -o pipefail && xcodebuild test -project Louis.xcodeproj -scheme Louis -sdk iphonesimulator -destination "id=${DEVICE_ID}" ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint