diff --git a/Sources/XMLCoder/Auxiliaries/XMLStackParser.swift b/Sources/XMLCoder/Auxiliaries/XMLStackParser.swift index 07ec9b51..8890b8c6 100644 --- a/Sources/XMLCoder/Auxiliaries/XMLStackParser.swift +++ b/Sources/XMLCoder/Auxiliaries/XMLStackParser.swift @@ -7,6 +7,9 @@ // import Foundation +#if canImport(FoundationXML) +import FoundationXML +#endif class XMLStackParser: NSObject { var root: XMLCoderElement? @@ -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: ":") diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1b090d11..a5aaae93 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -36,6 +36,14 @@ 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 @@ -43,9 +51,15 @@ jobs: 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