Skip to content

Commit 4199cb7

Browse files
committed
Xcode 10.2 adjustments
1 parent 11876e3 commit 4199cb7

2 files changed

Lines changed: 39 additions & 34 deletions

File tree

.travis.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1+
os: osx
2+
language: swift
3+
osx_image: xcode10.2
4+
15
branches:
2-
only:
6+
only:
37
- master
48
stages:
59
- lint
10+
- carthage
611
- test
712
jobs:
813
include:
914
- &pod
1015
stage: lint
1116
osx_image: xcode8.3
1217
env: SWIFT=3.1
13-
name: pod lib lint --swift-version=3.1
14-
os: osx
15-
language: objective-c
1618
before_install:
1719
gem install cocoapods --prerelease --version 1.7.0.beta.3
1820
install:
@@ -26,50 +28,53 @@ jobs:
2628
- <<: *pod
2729
osx_image: xcode9.2
2830
env: SWIFT=3.2
29-
name: pod lib lint --swift-version=3.2
3031
- <<: *pod
3132
osx_image: xcode9.4
3233
env: SWIFT=3.3
33-
name: pod lib lint --swift-version=3.3
34-
- <<: *pod
35-
osx_image: xcode10.1
36-
env: SWIFT=3.4
37-
name: pod lib lint --swift-version=3.4
34+
# - <<: *pod
35+
# osx_image: xcode10
36+
# env: SWIFT=3.4
3837
- <<: *pod
3938
osx_image: xcode9.2
4039
env: SWIFT=4.0
41-
name: pod lib lint --swift-version=4.0
4240
- <<: *pod
4341
osx_image: xcode9.4
4442
env: SWIFT=4.1
45-
name: pod lib lint --swift-version=4.1
4643
- <<: *pod
47-
osx_image: xcode10.1
44+
osx_image: xcode10
4845
env: SWIFT=4.2
49-
name: pod lib lint --swift-version=4.2
5046
- <<: *pod
5147
osx_image: xcode10.2
5248
env: SWIFT=5.0
53-
name: pod lib lint --swift-version=5.0
49+
50+
- &carthage
51+
stage: carthage
52+
osx_image: xcode9.2
53+
script: |
54+
carthage bootstrap --cache-builds
55+
carthage build --no-skip-current
56+
cache:
57+
directories:
58+
- Carthage
59+
- <<: *carthage
60+
osx_image: xcode9.4
61+
- <<: *carthage
62+
osx_image: xcode10.1
63+
- <<: *carthage
64+
osx_image: xcode10.2
65+
5466
- &test
5567
stage: test
56-
osx_image: xcode10.2
57-
name: macOS Tests
58-
env: DST='arch=x86_64' PLAT=macOS
59-
os: osx
60-
language: objective-c
68+
xcode_scheme: PMKMapKit
69+
xcode_project: PMKMapKit.xcodeproj
70+
xcode_destination: 'platform=macOS'
6171
cache:
6272
directories:
6373
- Carthage
64-
before_install:
65-
carthage bootstrap --cache-builds --no-use-binaries --platform $PLAT
66-
install:
67-
xcodebuild -scheme PMKMapKit -target PMKMapKit -quiet -destination "$DST" SWIFT_TREAT_WARNINGS_AS_ERRORS=YES build
68-
script:
69-
xcodebuild -scheme PMKMapKit -quiet -destination "$DST" test
74+
before_install: |
75+
carthage bootstrap --cache-builds --no-use-binaries
76+
sed -i '' "s/SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;/SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;/" *.xcodeproj/project.pbxproj
7077
- <<: *test
71-
env: DST='OS=12.0,name=iPhone SE' PLAT=iOS
72-
name: iOS Tests
78+
xcode_destination: 'platform=iOS Simulator,OS=12.2,name=iPhone SE'
7379
- <<: *test
74-
env: DST='OS=12.0,name=Apple TV' PLAT=tvOS
75-
name: tvOS Tests
80+
xcode_destination: 'platform=Apple TV Simulator,OS=12.2,name=Apple TV'

PMKMapKit.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@
169169
TargetAttributes = {
170170
63C7FFA61D5BEE09003BAE60 = {
171171
CreatedOnToolsVersion = 8.0;
172-
LastSwiftMigration = 0900;
172+
LastSwiftMigration = 1020;
173173
ProvisioningStyle = Automatic;
174174
};
175175
63C7FFF11D5C020D003BAE60 = {
176176
CreatedOnToolsVersion = 8.0;
177-
LastSwiftMigration = 0900;
177+
LastSwiftMigration = 1020;
178178
ProvisioningStyle = Automatic;
179179
};
180180
};
@@ -392,6 +392,7 @@
392392
PRODUCT_MODULE_NAME = "${TARGET_NAME}";
393393
PRODUCT_NAME = "$(TARGET_NAME)";
394394
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
395+
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
395396
};
396397
name = Debug;
397398
};
@@ -408,6 +409,7 @@
408409
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
409410
PRODUCT_MODULE_NAME = "${TARGET_NAME}";
410411
PRODUCT_NAME = "$(TARGET_NAME)";
412+
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
411413
};
412414
name = Release;
413415
};
@@ -421,7 +423,6 @@
421423
PRODUCT_NAME = "$(TARGET_NAME)";
422424
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
423425
SWIFT_SUPPRESS_WARNINGS = YES;
424-
SWIFT_VERSION = 4.0;
425426
};
426427
name = Debug;
427428
};
@@ -434,7 +435,6 @@
434435
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
435436
PRODUCT_NAME = "$(TARGET_NAME)";
436437
SWIFT_SUPPRESS_WARNINGS = YES;
437-
SWIFT_VERSION = 4.0;
438438
};
439439
name = Release;
440440
};

0 commit comments

Comments
 (0)