Skip to content

Commit a7a236c

Browse files
authored
Merge pull request #13 from PromiseKit/travis-swift-5
[travis] Swift 5
2 parents ed201f5 + 7cc0373 commit a7a236c

File tree

4 files changed

+34
-29
lines changed

4 files changed

+34
-29
lines changed

.travis.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ stages:
55
- lint
66
- carthage
77
- test
8+
os: osx
9+
language: swift
810
jobs:
911
include:
1012
- &pod
11-
stage: lint
12-
osx_image: xcode8.3
1313
env: SWIFT=3.1
1414
name: pod lib lint --swift-version=3.1
15-
os: osx
16-
language: objective-c
15+
stage: lint
16+
osx_image: xcode8.3
1717
before_install:
18-
gem install cocoapods --prerelease --version 1.6.0.beta.1
18+
gem install cocoapods --prerelease --version 1.7.0.beta.2
1919
install:
2020
carthage bootstrap --no-build PromiseKit
2121
script: |
@@ -33,7 +33,7 @@ jobs:
3333
env: SWIFT=3.3
3434
name: pod lib lint --swift-version=3.3
3535
- <<: *pod
36-
osx_image: xcode10
36+
osx_image: xcode10.1
3737
env: SWIFT=3.4
3838
name: pod lib lint --swift-version=3.4
3939
- <<: *pod
@@ -45,26 +45,27 @@ jobs:
4545
env: SWIFT=4.1
4646
name: pod lib lint --swift-version=4.1
4747
- <<: *pod
48-
osx_image: xcode10
48+
osx_image: xcode10.1
4949
env: SWIFT=4.2
5050
name: pod lib lint --swift-version=4.2
51+
- <<: *pod
52+
osx_image: xcode10.2
53+
env: SWIFT=5.0
54+
name: pod lib lint --swift-version=5.0
5155

5256
- &test
53-
stage: test
54-
osx_image: xcode10
5557
name: iOS Tests
56-
env: DST='OS=12.0,name=iPhone SE' PLAT=iOS
57-
os: osx
58-
language: objective-c
58+
stage: test
59+
osx_image: xcode10.2
60+
xcode_scheme: PMKUIKit
61+
xcode_project: PMKUIKit.xcodeproj
62+
before_install: carthage bootstrap --cache-builds --no-use-binaries
63+
xcode_destination: 'platform=iOS Simulator,OS=12.2,name=iPhone SE'
5964
cache:
6065
directories:
6166
- Carthage
62-
before_install:
63-
carthage bootstrap --cache-builds --no-use-binaries --platform $PLAT
64-
install:
65-
xcodebuild -scheme PMKUIKit -target PMKUIKit -quiet -destination "$DST" SWIFT_TREAT_WARNINGS_AS_ERRORS=YES build
66-
script:
67-
xcodebuild -scheme PMKUIKit -quiet -destination "$DST" test
67+
before_script:
68+
sed -i '' 's/SWIFT_TREAT_WARNINGS_AS_ERRORS = NO/SWIFT_TREAT_WARNINGS_AS_ERRORS = YES/g' PMKUIKit.xcodeproj/project.pbxproj
6869
- <<: *test
69-
env: DST='OS=12.0,name=Apple TV' PLAT=tvOS
7070
name: tvOS Tests
71+
xcode_destination: 'platform=tvOS Simulator,OS=12.2,name=Apple TV'

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "mxcl/PromiseKit" "6.5.0"
1+
github "mxcl/PromiseKit" "6.8.4"

PMKUIKit.xcodeproj/project.pbxproj

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,34 +287,34 @@
287287
isa = PBXProject;
288288
attributes = {
289289
LastSwiftUpdateCheck = 0800;
290-
LastUpgradeCheck = 1000;
290+
LastUpgradeCheck = 1020;
291291
ORGANIZATIONNAME = "Max Howell";
292292
TargetAttributes = {
293293
630B2DFF1D5D0AF500DC10E9 = {
294-
LastSwiftMigration = 0900;
294+
LastSwiftMigration = 1020;
295295
TestTargetID = 63C9C4441D5D334700101ECE;
296296
};
297297
63C7FFA61D5BEE09003BAE60 = {
298298
CreatedOnToolsVersion = 8.0;
299-
LastSwiftMigration = 0900;
299+
LastSwiftMigration = 1020;
300300
ProvisioningStyle = Automatic;
301301
};
302302
63C7FFF11D5C020D003BAE60 = {
303303
CreatedOnToolsVersion = 8.0;
304-
LastSwiftMigration = 0900;
304+
LastSwiftMigration = 1020;
305305
ProvisioningStyle = Automatic;
306306
TestTargetID = 63C9C4441D5D334700101ECE;
307307
};
308308
63C9C4441D5D334700101ECE = {
309309
CreatedOnToolsVersion = 8.0;
310-
LastSwiftMigration = 0900;
310+
LastSwiftMigration = 1020;
311311
ProvisioningStyle = Automatic;
312312
};
313313
};
314314
};
315315
buildConfigurationList = 63C7FFA11D5BEE09003BAE60 /* Build configuration list for PBXProject "PMKUIKit" */;
316316
compatibilityVersion = "Xcode 3.2";
317-
developmentRegion = English;
317+
developmentRegion = en;
318318
hasScannedForEncodings = 0;
319319
knownRegions = (
320320
en,
@@ -482,6 +482,7 @@
482482
buildSettings = {
483483
ALWAYS_SEARCH_USER_PATHS = NO;
484484
BUNDLE_PACKAGE_TYPE = FMWK;
485+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
485486
CLANG_ANALYZER_NONNULL = YES;
486487
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
487488
CLANG_CXX_LIBRARY = "libc++";
@@ -536,7 +537,7 @@
536537
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvsimulator appletvos";
537538
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
538539
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
539-
SWIFT_VERSION = 3.0;
540+
SWIFT_VERSION = 4.0;
540541
TARGETED_DEVICE_FAMILY = "1,2,3,4";
541542
TVOS_DEPLOYMENT_TARGET = 9.0;
542543
WATCHOS_DEPLOYMENT_TARGET = 2.0;
@@ -549,6 +550,7 @@
549550
buildSettings = {
550551
ALWAYS_SEARCH_USER_PATHS = NO;
551552
BUNDLE_PACKAGE_TYPE = FMWK;
553+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
552554
CLANG_ANALYZER_NONNULL = YES;
553555
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
554556
CLANG_CXX_LIBRARY = "libc++";
@@ -595,7 +597,7 @@
595597
PRODUCT_BUNDLE_IDENTIFIER = org.promisekit.UIKit;
596598
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvsimulator appletvos";
597599
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
598-
SWIFT_VERSION = 3.0;
600+
SWIFT_VERSION = 4.0;
599601
TARGETED_DEVICE_FAMILY = "1,2,3,4";
600602
TVOS_DEPLOYMENT_TARGET = 9.0;
601603
VALIDATE_PRODUCT = YES;
@@ -617,6 +619,7 @@
617619
PRODUCT_MODULE_NAME = "${TARGET_NAME}";
618620
PRODUCT_NAME = "$(TARGET_NAME)";
619621
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
622+
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
620623
};
621624
name = Debug;
622625
};
@@ -633,6 +636,7 @@
633636
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
634637
PRODUCT_MODULE_NAME = "${TARGET_NAME}";
635638
PRODUCT_NAME = "$(TARGET_NAME)";
639+
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
636640
};
637641
name = Release;
638642
};

PMKUIKit.xcodeproj/xcshareddata/xcschemes/PMKUIKit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1000"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)