-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from PromiseKit/carthage-xcode-10.2
Carthage Xcode 10.2 support
- Loading branch information
Showing
5 changed files
with
91 additions
and
36 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,26 +1,78 @@ | ||
os: osx | ||
language: objective-c | ||
osx_image: xcode10 | ||
env: | ||
- PLAT=macOS SWFT=3.4 DST="arch=x86_64" | ||
- PLAT=iOS SWFT=3.4 DST="OS=11.4,name=iPhone 5s" | ||
language: swift | ||
osx_image: xcode10.2 | ||
|
||
- PLAT=macOS SWFT=4.2 DST="arch=x86_64" TEST=1 | ||
- PLAT=iOS SWFT=4.2 DST="OS=8.4,name=iPhone 4s" | ||
- PLAT=iOS SWFT=4.2 DST="OS=9.3,name=iPhone 5s" | ||
- PLAT=iOS SWFT=4.2 DST="OS=10.3.1,name=iPhone SE" | ||
- PLAT=iOS SWFT=4.2 DST="OS=11.4,name=iPhone 5s" TEST=1 | ||
cache: | ||
directories: | ||
- Carthage | ||
before_install: | ||
- carthage bootstrap --cache-builds --no-use-binaries --platform $PLAT --verbose | ||
install: | ||
- xcodebuild -scheme PMKSocial -target PMKSocial -quiet -destination "$DST" build SWIFT_VERSION=$SWFT SWIFT_TREAT_WARNINGS_AS_ERRORS=YES | ||
- if [[ $TEST == "1" ]]; then | ||
xcodebuild -scheme PMKSocial -target PMKSLTests -quiet -destination "$DST" build; | ||
fi | ||
script: | ||
- if [[ $TEST == "1" ]]; then | ||
xcodebuild -scheme PMKSocial -quiet -destination "$DST" test; | ||
fi | ||
branches: | ||
only: | ||
- master | ||
stages: | ||
- lint | ||
- carthage | ||
- test | ||
jobs: | ||
include: | ||
- &pod | ||
stage: lint | ||
osx_image: xcode8.3 | ||
env: SWIFT=3.1 | ||
before_install: | ||
gem install cocoapods --prerelease --version 1.7.0.beta.3 | ||
install: | ||
carthage bootstrap --no-build PromiseKit | ||
script: | | ||
cd Carthage/Checkouts/PromiseKit | ||
mv .github/PromiseKit.podspec . | ||
rm -rf Extensions/Social/Sources | ||
cp -R ../../../Sources Extensions/Social | ||
pod lib lint --subspec=PromiseKit/Social --fail-fast --swift-version=$SWIFT | ||
- <<: *pod | ||
osx_image: xcode9.2 | ||
env: SWIFT=3.2 | ||
- <<: *pod | ||
osx_image: xcode9.4 | ||
env: SWIFT=3.3 | ||
- <<: *pod | ||
osx_image: xcode10.1 | ||
env: SWIFT=3.4 | ||
- <<: *pod | ||
osx_image: xcode9.2 | ||
env: SWIFT=4.0 | ||
- <<: *pod | ||
osx_image: xcode9.4 | ||
env: SWIFT=4.1 | ||
- <<: *pod | ||
osx_image: xcode10.1 | ||
env: SWIFT=4.2 | ||
- <<: *pod | ||
osx_image: xcode10.2 | ||
env: SWIFT=5.0 | ||
|
||
- &carthage | ||
stage: carthage | ||
osx_image: xcode9.2 | ||
script: | | ||
carthage bootstrap --cache-builds | ||
sed -i '' "s/SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;/SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;/" *.xcodeproj/project.pbxproj | ||
carthage build --no-skip-current | ||
cache: | ||
directories: | ||
- Carthage | ||
- <<: *carthage | ||
osx_image: xcode9.4 | ||
- <<: *carthage | ||
osx_image: xcode10.1 | ||
- <<: *carthage | ||
osx_image: xcode10.2 | ||
|
||
- &test | ||
stage: test | ||
xcode_scheme: PMKSocial | ||
xcode_project: PMKSocial.xcodeproj | ||
xcode_destination: 'platform=macOS' | ||
cache: | ||
directories: | ||
- Carthage | ||
before_install: | ||
carthage bootstrap --cache-builds --no-use-binaries | ||
- <<: *test | ||
xcode_destination: 'platform=iOS Simulator,OS=12.2,name=iPhone SE' |
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,2 +1,2 @@ | ||
github "mxcl/PromiseKit" ~> 6.0 | ||
github "mxcl/PromiseKit" ~> 6.8.4 | ||
github "PromiseKit/Foundation" ~> 3.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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
github "PromiseKit/Foundation" "3.2.0" | ||
github "mxcl/PromiseKit" "6.3.4" | ||
github "PromiseKit/Foundation" "3.3.2" | ||
github "mxcl/PromiseKit" "6.8.4" |
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