File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,19 @@ language: objective-c
2
2
osx_image : xcode8
3
3
4
4
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
7
12
8
13
install :
9
14
- carthage bootstrap --platform $PLATFORM
10
15
11
16
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
You can’t perform that action at this time.
0 commit comments