forked from BendingSpoons/tempura-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (21 loc) · 790 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
language: swift
osx_image: xcode9
env:
global:
- PROJECT=Tempura.xcworkspace
matrix:
- SCHEME="Tempura"
SDK=iphonesimulator11.0
SIMULATOR="platform=iOS Simulator,OS=11.0,name=iPhone 8"
before_install:
- export IOS_SIMULATOR_UDID=`instruments -s devices | grep "iPhone 8 (11.0" | awk -F '[ ]' '{print $4}' | awk -F '[[]' '{print $2}' | sed 's/.$//'`
- echo $IOS_SIMULATOR_UDID
- open -a "simulator" --args -CurrentDeviceUDID $IOS_SIMULATOR_UDID
- pod repo update > /dev/null
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
- instruments -s devices
# Build Framework in Debug and Run Tests if specified
- travis_retry xcodebuild -workspace $PROJECT -scheme "$SCHEME" -sdk $SDK test -destination "$SIMULATOR" | xcpretty -c