Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Xcode 11, Swift 5.1 support #133

Merged
merged 6 commits into from Sep 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion Sources/XMLCoder/Auxiliaries/XMLStackParser.swift
Expand Up @@ -7,6 +7,9 @@
//

import Foundation
#if canImport(FoundationXML)
import FoundationXML
#endif

class XMLStackParser: NSObject {
var root: XMLCoderElement?
Expand Down Expand Up @@ -126,7 +129,7 @@ extension XMLStackParser: XMLParserDelegate {
namespaceURI: String?,
qualifiedName: String?,
attributes attributeDict: [String: String] = [:]) {
#if os(Linux)
#if os(Linux) && !compiler(>=5.1)
// For some reason, element names on linux are coming out with the namespace after the name
// https://bugs.swift.org/browse/SR-11191
let elementName = elementName.components(separatedBy: ":").reversed().joined(separator: ":")
Expand Down
18 changes: 16 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -36,16 +36,30 @@ jobs:
env:
IOS_DEVICE: 'platform=iOS Simulator,OS=12.2,name=iPhone SE'
TVOS_DEVICE: 'platform=tvOS Simulator,OS=12.2,name=Apple TV 4K'
- job: test_xcodebuild_11_0
pool:
vmImage: 'macos-latest'
steps:
- bash: ./test_xcodebuild.sh Xcode_11
env:
IOS_DEVICE: 'platform=iOS Simulator,OS=13.0,name=iPhone 8'
TVOS_DEVICE: 'platform=tvOS Simulator,OS=13.0,name=Apple TV 4K'
CODECOV_JOB: 'true'
CODECOV_TOKEN: $(codecovToken)
- job: test_swiftpm
pool:
vmImage: 'macos-latest'
steps:
- script: ./test_swiftpm.sh
- job: test_linux
- job: test_linux_5_0
pool:
vmImage: 'Ubuntu 16.04'
container: norionomura/swift:503
steps:
- script: ./test_linux.sh
- job: test_linux_5_1
pool:
vmImage: 'Ubuntu 16.04'
container: norionomura/swift:501
container: norionomura/swift:51
steps:
- script: ./test_linux.sh