Skip to content

Commit b912fa6

Browse files
authored
Merge pull request #9 from GEOSwift/misc-updates
Misc updates
2 parents 3c29396 + 4447177 commit b912fa6

15 files changed

+82
-59
lines changed

.codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
coverage:
23
status:
3-
patch: off
4+
patch: false

.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
included:
23
- GEOSwiftMapKit
34
- GEOSwiftMapKitTests

.travis.yml

Lines changed: 29 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,36 @@
11
---
2-
language: objective-c
3-
4-
osx_image: xcode11.1
2+
os: osx
3+
osx_image: xcode11.3
4+
language: minimal
55

66
cache:
77
directories:
88
- Carthage
99

10-
env:
11-
global:
12-
- WORKSPACE=GEOSwiftMapKit.xcworkspace
13-
matrix:
14-
- PLATFORM=iOS
15-
SCHEME=GEOSwiftMapKit-iOS
16-
SDK=iphonesimulator13.1
17-
DESTINATION="platform=iOS Simulator,OS=13.1,name=iPhone 11"
18-
RUN_CODECOV=true
19-
- PLATFORM=tvOS
20-
SCHEME=GEOSwiftMapKit-tvOS
21-
SDK=appletvsimulator13.0
22-
DESTINATION="platform=tvOS Simulator,OS=13.0,name=Apple TV"
23-
RUN_CODECOV=false
24-
- PLATFORM=macOS
25-
SCHEME=GEOSwiftMapKit-macOS
26-
SDK=macosx10.15
27-
DESTINATION="platform=OS X"
28-
RUN_CODECOV=false
29-
30-
before_install:
31-
- brew install carthage swiftlint
32-
- gem install xcpretty
33-
- travis_wait 30 carthage update
34-
--cache-builds
35-
--platform "$PLATFORM"
36-
--no-use-binaries
37-
38-
script:
39-
- set -o pipefail
40-
- xcodebuild
41-
-workspace "$WORKSPACE"
42-
-scheme "$SCHEME"
43-
-sdk "$SDK"
44-
-destination "$DESTINATION"
45-
-configuration Debug
46-
ONLY_ACTIVE_ARCH=YES
47-
clean test | xcpretty -c;
10+
jobs:
11+
include:
12+
- name: iOS - xcodebuild
13+
env: PLATFORM=iOS
14+
SCHEME=GEOSwiftMapKit-iOS
15+
SDK=iphonesimulator13.2
16+
DESTINATION="platform=iOS Simulator,OS=13.3,name=iPhone 11"
17+
WORKSPACE=GEOSwiftMapKit.xcworkspace
18+
RUN_CODECOV=true
19+
- name: tvOS - xcodebuild
20+
env: PLATFORM=tvOS
21+
SCHEME=GEOSwiftMapKit-tvOS
22+
SDK=appletvsimulator13.2
23+
DESTINATION="platform=tvOS Simulator,OS=13.3,name=Apple TV"
24+
WORKSPACE=GEOSwiftMapKit.xcworkspace
25+
- name: macOS - xcodebuild
26+
env: PLATFORM=macOS
27+
SCHEME=GEOSwiftMapKit-macOS
28+
SDK=macosx10.15
29+
DESTINATION="platform=OS X"
30+
WORKSPACE=GEOSwiftMapKit.xcworkspace
31+
- name: macOS - SPM
32+
env: USE_SPM=true
4833

49-
after_success:
50-
- if [ "${RUN_CODECOV}" = "true" ]; then
51-
bash <(curl -s https://codecov.io/bash) -J '^GEOSwiftMapKit$';
52-
fi
34+
before_install: travis_wait 30 ./scripts/travis_before_install.sh
35+
script: ./scripts/travis_script.sh
36+
after_success: ./scripts/travis_after_success.sh

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.0
2+
3+
* [#8](https://github.com/GEOSwift/GEOSwiftMapKit/pull/8) Update to GEOSwift 7
4+
15
## 1.2.0
26

37
* [#7](https://github.com/GEOSwift/GEOSwiftMapKit/pull/7) Swift PM Support

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "GEOSwift/GEOSwift" ~> 6.0
1+
github "GEOSwift/GEOSwift" ~> 7.0

Cartfile.resolved

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "GEOSwift/GEOSwift" "6.0.0"
2-
github "GEOSwift/geos" "4.1.0"
1+
github "GEOSwift/GEOSwift" "7.0.0"
2+
github "GEOSwift/geos" "5.0.0"

GEOSwiftMapKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'GEOSwiftMapKit'
3-
s.version = '1.2.0'
3+
s.version = '2.0.0'
44
s.swift_version = '5.1'
55
s.cocoapods_version = '>= 1.4.0'
66
s.summary = 'MapKit support for GEOSwift'
@@ -22,5 +22,5 @@ Pod::Spec.new do |s|
2222
}
2323
s.source_files = 'GEOSwiftMapKit/*.{swift,h}'
2424
s.macos.exclude_files = 'GEOSwiftMapKit/GEOSwift+MapKitQuickLook.swift'
25-
s.dependency 'GEOSwift', '~> 6.0'
25+
s.dependency 'GEOSwift', '~> 7.0'
2626
end

GEOSwiftMapKit/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.2.0</string>
18+
<string>2.0.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

GEOSwiftMapKitTests/.swiftlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
disabled_rules:
23
- force_try
34
- type_body_length

Package.resolved

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
"repositoryURL": "https://github.com/GEOSwift/geos.git",
77
"state": {
88
"branch": null,
9-
"revision": "4285f0903eacafd98705f047519c16e9dd09aba2",
10-
"version": "4.1.0"
9+
"revision": "083e366bc831d0f951974151315383830a79d447",
10+
"version": "5.0.0"
1111
}
1212
},
1313
{
1414
"package": "GEOSwift",
1515
"repositoryURL": "https://github.com/GEOSwift/GEOSwift.git",
1616
"state": {
1717
"branch": null,
18-
"revision": "dfc9da755f8966dae4b97073d7c2301065cbbbc1",
19-
"version": "6.0.0"
18+
"revision": "fc208fd843a4ff3caf214845a123b9a6247d82ea",
19+
"version": "7.0.0"
2020
}
2121
}
2222
]

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
.library(name: "GEOSwiftMapKit", targets: ["GEOSwiftMapKit"])
88
],
99
dependencies: [
10-
.package(url: "https://github.com/GEOSwift/GEOSwift.git", from: "6.0.0")
10+
.package(url: "https://github.com/GEOSwift/GEOSwift.git", from: "7.0.0")
1111
],
1212
targets: [
1313
.target(

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ at least controversial. Use of geos without dynamic linking is discouraged.
3232

3333
1. Add the following to your Cartfile:
3434

35-
github "GEOSwift/GEOSwiftMapKit" ~> 1.2.0
35+
github "GEOSwift/GEOSwiftMapKit" ~> 2.0.0
3636

3737
2. Finish updating your project by following the [typical Carthage
3838
workflow](https://github.com/Carthage/Carthage#quick-start).
@@ -41,7 +41,7 @@ workflow](https://github.com/Carthage/Carthage#quick-start).
4141

4242
1. Update the top-level dependencies in your `Package.swift` to include:
4343

44-
.package(url: "https://github.com/GEOSwift/GEOSwiftMapKit.git", from: "1.2.0")
44+
.package(url: "https://github.com/GEOSwift/GEOSwiftMapKit.git", from: "2.0.0")
4545

4646
2. Update the target dependencies in your `Package.swift` to include
4747

scripts/travis_after_success.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -evo pipefail
3+
4+
if [[ $RUN_CODECOV = 'true' ]]; then
5+
bash <(curl -s https://codecov.io/bash) -J '^GEOSwiftMapKit$';
6+
fi

scripts/travis_before_install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -evo pipefail
3+
4+
if [[ $USE_SPM != 'true' ]]; then
5+
brew upgrade carthage swiftlint
6+
gem install xcpretty
7+
carthage update \
8+
--cache-builds \
9+
--platform "$PLATFORM" \
10+
--no-use-binaries
11+
fi

scripts/travis_script.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -evo pipefail
3+
4+
if [[ $USE_SPM = 'true' ]]; then
5+
swift test --enable-test-discovery
6+
else
7+
xcodebuild \
8+
-workspace "$WORKSPACE" \
9+
-scheme "$SCHEME" \
10+
-sdk "$SDK" \
11+
-destination "$DESTINATION" \
12+
-configuration Debug \
13+
ONLY_ACTIVE_ARCH=YES \
14+
clean test | xcpretty -c;
15+
fi

0 commit comments

Comments
 (0)