-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Swift 4; Test all configurations
- Loading branch information
Showing
5 changed files
with
78 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,57 @@ | ||
os: osx | ||
language: objective-c | ||
osx_image: xcode8.3 | ||
env: | ||
- PLATFORM=Mac | ||
- PLATFORM=iOS NAME='iPhone SE' | ||
- PLATFORM=tvOS NAME='Apple TV 1080p' | ||
matrix: | ||
include: | ||
- osx_image: xcode8.2 | ||
env: PLAT=macOS SWFT=3.0 | ||
- osx_image: xcode8.2 | ||
env: PLAT=iOS SWFT=3.0 | ||
- osx_image: xcode8.2 | ||
env: PLAT=tvOS SWFT=3.0 | ||
- osx_image: xcode8.3 | ||
env: PLAT=macOS SWFT=3.1 | ||
- osx_image: xcode8.3 | ||
env: PLAT=iOS SWFT=3.1 | ||
- osx_image: xcode8.3 | ||
env: PLAT=tvOS SWFT=3.1 | ||
- osx_image: xcode9 | ||
env: PLAT=macOS SWFT=3.2 | ||
- osx_image: xcode9 | ||
env: PLAT=iOS SWFT=3.2 | ||
- osx_image: xcode9 | ||
env: PLAT=tvOS SWFT=3.2 | ||
- osx_image: xcode9 | ||
env: PLAT=macOS SWFT=4.0 | ||
- osx_image: xcode9 | ||
env: PLAT=iOS SWFT=4.0 | ||
- osx_image: xcode9 | ||
env: PLAT=tvOS SWFT=4.0 | ||
before_install: | ||
- if [ -n "$NAME" ]; then | ||
- case $PLAT in | ||
iOS) | ||
NAME="iPhone SE";; | ||
tvOS) | ||
NAME="Apple TV 1080p";; | ||
esac; | ||
if [ -n "$NAME" ]; then | ||
export UUID=$(instruments -s | ruby -e "ARGF.each_line{ |ln| ln =~ /$NAME .* \[(.*)\]/; if \$1; puts(\$1); exit; end }"); | ||
export DESTINATION="id=$UUID"; | ||
fi | ||
install: | ||
- carthage bootstrap --platform $PLATFORM | ||
- case $PLAT in | ||
macOS) | ||
carthage bootstrap --platform Mac;; | ||
tvOS|iOS) | ||
carthage bootstrap --platform $PLAT;; | ||
esac; | ||
script: | ||
- set -o pipefail; | ||
case $PLATFORM in | ||
Mac) | ||
xcodebuild -scheme PMKStoreKit test | xcpretty;; | ||
case $PLAT in | ||
macOS) | ||
xcodebuild -scheme PMKStoreKit -quiet build clean SWIFT_VERSION=$SWFT; | ||
xcodebuild -scheme PMKStoreKit -quiet test;; | ||
iOS|tvOS) | ||
open -a "simulator" --args -CurrentDeviceUDID "$UUID"; | ||
xcodebuild -scheme PMKStoreKit -destination "id=$UUID" test | xcpretty;; | ||
open -b com.apple.iphonesimulator --args -CurrentDeviceUDID "$UUID"; | ||
xcodebuild -scheme PMKStoreKit -quiet -destination "$DESTINATION" build clean SWIFT_VERSION=$SWFT; | ||
xcodebuild -scheme PMKStoreKit -quiet -destination "$DESTINATION" test;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters