Skip to content

Commit bf07108

Browse files
committed
Update Travis to Xcode 8.3
1 parent ca6c5fd commit bf07108

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.travis.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
language: objective-c
2-
osx_image: xcode8
3-
2+
osx_image: xcode8.3
43
env:
5-
- ACTION=test PLATFORM=Mac DESTINATION='platform=OS X'
6-
- ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 6S' UUID='7FC06F6D-AF72-4B38-9A96-1F934EA2E27F'
7-
- ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' UUID='0DF1B136-A3A7-4C51-AE6E-CFEFDF52DA24'
8-
4+
- PLATFORM=Mac
5+
- PLATFORM=iOS NAME='iPhone SE'
6+
- PLATFORM=tvOS NAME='Apple TV 1080p'
7+
before_install:
8+
- if [ -n "$NAME" ]; then
9+
export UUID=$(instruments -s | ruby -e "ARGF.each_line{ |ln| ln =~ /$NAME .* \[(.*)\]/; if \$1; puts(\$1); exit; end }");
10+
fi
911
install:
1012
- carthage bootstrap --platform $PLATFORM
11-
1213
script:
13-
- if [ -n "$UUID" ]; then xcrun instruments -w "$UUID" || true; sleep 15; fi
14-
- set -o pipefail && xcodebuild -scheme PMKStoreKit -destination "$DESTINATION" $ACTION | xcpretty
14+
- set -o pipefail;
15+
case $PLATFORM in
16+
Mac)
17+
xcodebuild -scheme PMKStoreKit test | xcpretty;;
18+
iOS|tvOS)
19+
open -a "simulator" --args -CurrentDeviceUDID "$UUID";
20+
xcodebuild -scheme PMKStoreKit -destination "id=$UUID" test | xcpretty;;
21+
esac

0 commit comments

Comments
 (0)