Skip to content

Commit 536f075

Browse files
committed
Attempt to fix Travis
Refs https://github.com/travis-ci/travis-ci/ issues/6251
1 parent 752e435 commit 536f075

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@ language: objective-c
22
osx_image: xcode8
33

44
env:
5-
- ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone 6S' UUID='7FC06F6D-AF72-4B38-9A96-1F934EA2E27F'
6-
- ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 1080p' UUID='0DF1B136-A3A7-4C51-AE6E-CFEFDF52DA24'
5+
- PLATFORM=iOS NAME='iPhone SE'
6+
- PLATFORM=tvOS NAME='Apple TV 1080p'
7+
8+
before_install:
9+
- if [ -n "$NAME" ]; then
10+
export UUID=$(instruments -s | ruby -e "ARGF.each_line{ |ln| ln =~ /$NAME .* \[(.*)\]/; if \$1; puts(\$1); exit; end }");
11+
fi
712

813
install:
914
- carthage bootstrap --platform $PLATFORM
1015

1116
script:
12-
- if [ -n "$UUID" ]; then xcrun instruments -w "$UUID" || true; sleep 15; fi
13-
- set -o pipefail && xcodebuild -scheme PMKUIKit -sdk $SDK -destination "id=$UUID" clean build test | xcpretty
17+
- set -o pipefail;
18+
xcrun instruments -w "$UUID";
19+
sleep 15;
20+
xcodebuild -scheme PMKUIKit -destination "id=$UUID" test | xcpretty

0 commit comments

Comments
 (0)