File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 11language : objective-c
2- osx_image : xcode8
3-
2+ osx_image : xcode8.3
43env :
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
911install :
1012 - carthage bootstrap --platform $PLATFORM
11-
1213script :
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
You can’t perform that action at this time.
0 commit comments