Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade xcodeproj to v9; CI all supported confs
- Loading branch information
Showing
9 changed files
with
90 additions
and
32 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,5 +1,5 @@ | ||
*.xcodeproj/**/xcuserdata/ | ||
*.xcscmblueprint | ||
/Carthage | ||
/Cartfile.resolved | ||
/.build | ||
.DS_Store |
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,28 +1,67 @@ | ||
os: osx | ||
language: objective-c | ||
osx_image: xcode8.3 | ||
|
||
env: | ||
- PLATFORM=Mac | ||
- PLATFORM=iOS NAME='iPhone SE' | ||
- PLATFORM=tvOS NAME='Apple TV 1080p' | ||
- PLATFORM=watchOS | ||
|
||
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.2 | ||
env: PLAT=watchOS 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: xcode8.3 | ||
env: PLAT=watchOS 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=watchOS 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 | ||
- osx_image: xcode9 | ||
env: PLAT=watchOS SWFT=4.0 | ||
before_install: | ||
- if [ -n "$NAME" ]; then | ||
- case $PLAT in | ||
iOS) | ||
NAME="iPhone SE";; | ||
tvOS) | ||
NAME="Apple TV 1080p";; | ||
watchOS) | ||
NAME="Apple Watch - 38mm";; | ||
esac; | ||
if [ -n "$NAME" ]; then | ||
export UUID=$(instruments -s | ruby -e "ARGF.each_line{ |ln| ln =~ /$NAME .* \[(.*)\]/; if \$1; puts(\$1); exit; end }"); | ||
fi | ||
|
||
install: | ||
- carthage bootstrap --platform $PLATFORM | ||
|
||
- case $PLAT in | ||
macOS) | ||
carthage bootstrap --platform Mac;; | ||
tvOS|iOS|watchOS) | ||
carthage bootstrap --platform $PLAT;; | ||
esac; | ||
script: | ||
- set -o pipefail; | ||
case $PLATFORM in | ||
Mac) | ||
xcodebuild -scheme PMKAlamofire test | xcpretty;; | ||
case $PLAT in | ||
macOS) | ||
xcodebuild -scheme PMKAlamofire -quiet test SWIFT_VERSION=$SWFT;; | ||
iOS|tvOS) | ||
open -a "simulator" --args -CurrentDeviceUDID "$UUID"; | ||
xcodebuild -scheme PMKAlamofire -destination "id=$UUID" test | xcpretty;; | ||
open -b com.apple.iphonesimulator --args -CurrentDeviceUDID "$UUID"; | ||
xcodebuild -scheme PMKAlamofire -destination "id=$UUID" -quiet clean build SWIFT_VERSION=$SWFT; | ||
xcodebuild -scheme PMKAlamofire -destination "id=$UUID" -quiet test;; | ||
watchOS) | ||
xcodebuild -scheme PMKAlamofire -destination "name=Apple Watch - 38mm" | xcpretty;; | ||
xcodebuild -scheme PMKAlamofire -destination "id=$UUID" -quiet clean build SWIFT_VERSION=$SWFT; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "AliSoftware/OHHTTPStubs" "swift-3.0" | ||
github "AliSoftware/OHHTTPStubs" ~> 6.0 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
github "Alamofire/Alamofire" "4.5.0" | ||
github "AliSoftware/OHHTTPStubs" "6.0.0" | ||
github "mxcl/PromiseKit" "4.3.2" |
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