Skip to content

Commit

Permalink
Merge pull request #7 from PromiseKit/swift-5-GM-travis
Browse files Browse the repository at this point in the history
[travis] Update to Swift 5 GM
  • Loading branch information
mxcl authored Mar 27, 2019
2 parents 79bc774 + 5085381 commit 06514c3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
branches:
only:
only:
- master
stages:
- lint
Expand All @@ -16,7 +16,7 @@ jobs:
os: osx
language: objective-c
before_install:
gem install cocoapods --prerelease --version 1.6.0.beta.1
gem install cocoapods --prerelease --version 1.7.0.beta.2
install:
carthage bootstrap --no-build PromiseKit
script: |
Expand Down Expand Up @@ -49,9 +49,13 @@ jobs:
osx_image: xcode10.1
env: SWIFT=4.2
name: pod lib lint --swift-version=4.2
- <<: *pod
osx_image: xcode10.2
env: SWIFT=5.0
name: pod lib lint --swift-version=5.0

- stage: carthage
osx_image: xcode10.1
osx_image: xcode10.2
name: Carthage / watchOS
os: osx
language: objective-c
Expand All @@ -60,14 +64,17 @@ jobs:
cache:
directories:
- Carthage

- &swiftpm
stage: swiftpm
osx_image: xcode10.1
name: swift build (tools-version-4.2)
osx_image: xcode10.2
name: swift build (tools-version-5.0)
os: osx
language: objective-c
script: swift build -Xswiftc -target -Xswiftc x86_64-apple-macosx10.12
- <<: *swiftpm
osx_image: xcode10.1
name: swift build (tools-version-4.2)
- <<: *swiftpm
osx_image: xcode9.2
name: swift build (tools-version-4.0)
Expand All @@ -77,7 +84,7 @@ jobs:

- &test
stage: test
osx_image: xcode10.1
osx_image: xcode10.2
name: macOS Tests
env: DST='arch=x86_64' PLAT=macOS
os: osx
Expand All @@ -92,8 +99,8 @@ jobs:
script:
xcodebuild -scheme PMKCloudKit -quiet -destination "$DST" test
- <<: *test
env: DST='OS=12.0,name=iPhone SE' PLAT=iOS
env: DST='OS=12.2,name=iPhone SE' PLAT=iOS
name: iOS Tests
- <<: *test
env: DST='OS=12.0,name=Apple TV' PLAT=tvOS
env: DST='OS=12.2,name=Apple TV' PLAT=tvOS
name: tvOS Tests
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "mxcl/PromiseKit" "6.5.0"
github "mxcl/PromiseKit" "6.8.4"
4 changes: 2 additions & 2 deletions PMKCloudKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos macosx appletvsimulator appletvos";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2,3,4";
TVOS_DEPLOYMENT_TARGET = 10.0;
VERSIONING_SYSTEM = "apple-generic";
Expand Down Expand Up @@ -371,7 +371,7 @@
PRODUCT_BUNDLE_IDENTIFIER = org.promisekit.CloudKit;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos macosx appletvsimulator appletvos";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2,3,4";
TVOS_DEPLOYMENT_TARGET = 10.0;
VALIDATE_PRODUCT = YES;
Expand Down

0 comments on commit 06514c3

Please sign in to comment.