-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from weichsel/development
Prepare 0.9.9 Release
- Loading branch information
Showing
31 changed files
with
592 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
- job: Linux_Swift_5_0 | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
container: swift:5.0 | ||
steps: | ||
- script: swift test -c release -Xswiftc -enable-testing | ||
displayName: Linux Swift 5.0 | ||
|
||
- job: Linux_Swift_4_2 | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
container: swift:4.2 | ||
steps: | ||
- script: swift test -c release -Xswiftc -enable-testing | ||
displayName: Linux Swift 4.2 | ||
|
||
- job: Linux_Swift_4_1 | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
container: swift:4.1 | ||
steps: | ||
- script: swift test -c release -Xswiftc -enable-testing | ||
displayName: Linux Swift 4.1 | ||
|
||
- job: Linux_Swift_4_0 | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
container: swift:4.0 | ||
steps: | ||
- script: swift test -c release -Xswiftc -enable-testing | ||
displayName: Linux Swift 4.0 | ||
|
||
- job: macOS_10_13 | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
variables: | ||
DEVELOPER_DIR: /Applications/Xcode_10.1.app | ||
steps: | ||
- task: Xcode@5 | ||
inputs: | ||
actions: 'test' | ||
packageApp: false | ||
exportMethod: 'development' | ||
exportOptionsPlist: '' | ||
configuration: 'Release' | ||
scheme: 'ZIPFoundation' | ||
sdk: 'macosx' | ||
destinationPlatformOption: 'macOS' | ||
useXcpretty: true | ||
publishJUnitResults: true | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: build/reports/** | ||
failTaskOnFailedTests: true | ||
|
||
- job: iOS_12_1 | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
variables: | ||
DEVELOPER_DIR: /Applications/Xcode_10.1.app | ||
steps: | ||
- task: Xcode@5 | ||
inputs: | ||
actions: 'test' | ||
packageApp: false | ||
exportMethod: 'development' | ||
exportOptionsPlist: '' | ||
configuration: 'Release' | ||
scheme: 'ZIPFoundation' | ||
sdk: 'iphonesimulator' | ||
destinationPlatformOption: 'iOS' | ||
destinationTypeOption: 'simulators' | ||
destinationSimulators: 'iPhone X' | ||
useXcpretty: true | ||
publishJUnitResults: true | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: build/reports/** | ||
failTaskOnFailedTests: true | ||
|
||
- job: watchOS_5_1 | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
variables: | ||
DEVELOPER_DIR: /Applications/Xcode_10.1.app | ||
steps: | ||
# We currently only perform a build-only script for watchOS (xcodebuild test is unable to find the XCTest module) | ||
- task: Xcode@5 | ||
inputs: | ||
actions: 'build' | ||
packageApp: false | ||
exportMethod: 'development' | ||
exportOptionsPlist: '' | ||
configuration: 'Release' | ||
scheme: 'ZIPFoundation' | ||
sdk: 'watchsimulator' | ||
destinationPlatformOption: 'custom' | ||
destinationTypeOption: 'simulators' | ||
destinationSimulators: 'Apple Watch Series 3 - 38mm' | ||
|
||
- job: tvOS_12_1 | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
variables: | ||
DEVELOPER_DIR: /Applications/Xcode_10.1.app | ||
steps: | ||
- task: Xcode@5 | ||
inputs: | ||
actions: 'test' | ||
packageApp: false | ||
exportMethod: 'development' | ||
exportOptionsPlist: '' | ||
configuration: 'Release' | ||
scheme: 'ZIPFoundation' | ||
sdk: 'appletvsimulator' | ||
destinationPlatformOption: 'tvOS' | ||
destinationTypeOption: 'simulators' | ||
destinationSimulators: 'Apple TV 4K' | ||
useXcpretty: true | ||
publishJUnitResults: true | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: build/reports/** | ||
failTaskOnFailedTests: true | ||
|
||
- job: SwiftLint | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
variables: | ||
DEVELOPER_DIR: /Applications/Xcode_10.1.app | ||
steps: | ||
- script: xcodebuild -scheme ZIPFoundation clean build-for-testing > xcodebuild.log | ||
displayName: Generate xcodebuild.log | ||
- script: HOMEBREW_NO_AUTO_UPDATE=1 brew install https://raw.github.com/Homebrew/homebrew-core/master/Formula/swiftlint.rb | ||
displayName: Install SwiftLint | ||
- script: | | ||
set -o pipefail | ||
mkdir -p build/reports/ | ||
swiftlint lint --reporter junit > build/reports/swiftlint.xml | ||
displayName: SwiftLint | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: build/reports/** | ||
failTaskOnFailedTests: true | ||
- script: swiftlint analyze --strict --compiler-log-path xcodebuild.log | ||
displayName: SwiftLint Analyze | ||
|
||
- job: CodeCoverage | ||
pool: | ||
vmImage: 'macOS 10.13' | ||
variables: | ||
DEVELOPER_DIR: /Applications/Xcode_10.1.app | ||
steps: | ||
- script: xcodebuild test -destination 'platform=macOS,arch=x86_64' -scheme "ZIPFoundation" -derivedDataPath Build/ | ||
displayName: Generate xccovreport | ||
- script: (xcrun xccov view --only-targets Build/Logs/Test/*.xcresult/*_Test/action.xccovreport | grep -Eq "ZIPFoundation.*100\.00%") && { exit 0; } || { echo '##vso[task.logissue type=error;]Please make sure that the test suite covers all framework code paths.'; exit 1; } | ||
displayName: Check for full line coverage |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
// swift-tools-version:4.0 | ||
// swift-tools-version:5.0 | ||
import PackageDescription | ||
|
||
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) | ||
let dependencies: [Package.Dependency] = [] | ||
#if canImport(Compression) | ||
let targets: [Target] = [ | ||
.target(name: "ZIPFoundation"), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
#else | ||
let dependencies: [Package.Dependency] = [.package(url: "https://github.com/IBM-Swift/CZlib.git", .exact("0.1.2"))] | ||
let targets: [Target] = [ | ||
.systemLibrary(name: "CZLib", pkgConfig: "zlib", providers: [.brew(["zlib"]), .apt(["zlib"])]), | ||
.target(name: "ZIPFoundation", dependencies: ["CZLib"]), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
#endif | ||
|
||
let package = Package( | ||
name: "ZIPFoundation", | ||
platforms: [ | ||
.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2) | ||
], | ||
products: [ | ||
.library(name: "ZIPFoundation", targets: ["ZIPFoundation"]) | ||
], | ||
dependencies: dependencies, | ||
targets: [ | ||
.target(name: "ZIPFoundation"), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
targets: targets, | ||
swiftLanguageVersions: [.v4, .v4_2, .v5] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version:4.0 | ||
import PackageDescription | ||
|
||
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) | ||
let dependencies: [Package.Dependency] = [] | ||
#else | ||
let dependencies: [Package.Dependency] = [.package(url: "https://github.com/IBM-Swift/CZlib.git", .exact("0.1.2"))] | ||
#endif | ||
|
||
let package = Package( | ||
name: "ZIPFoundation", | ||
products: [ | ||
.library(name: "ZIPFoundation", targets: ["ZIPFoundation"]) | ||
], | ||
dependencies: dependencies, | ||
targets: [ | ||
.target(name: "ZIPFoundation"), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version:4.1 | ||
import PackageDescription | ||
|
||
#if canImport(Compression) | ||
let dependencies: [Package.Dependency] = [] | ||
#else | ||
let dependencies: [Package.Dependency] = [.package(url: "https://github.com/IBM-Swift/CZlib.git", .exact("0.1.2"))] | ||
#endif | ||
|
||
let package = Package( | ||
name: "ZIPFoundation", | ||
products: [ | ||
.library(name: "ZIPFoundation", targets: ["ZIPFoundation"]) | ||
], | ||
dependencies: dependencies, | ||
targets: [ | ||
.target(name: "ZIPFoundation"), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// swift-tools-version:4.2 | ||
import PackageDescription | ||
|
||
#if canImport(Compression) | ||
let dependencies: [Package.Dependency] = [] | ||
#else | ||
let dependencies: [Package.Dependency] = [.package(url: "https://github.com/IBM-Swift/CZlib.git", .exact("0.1.2"))] | ||
#endif | ||
|
||
let package = Package( | ||
name: "ZIPFoundation", | ||
products: [ | ||
.library(name: "ZIPFoundation", targets: ["ZIPFoundation"]) | ||
], | ||
dependencies: dependencies, | ||
targets: [ | ||
.target(name: "ZIPFoundation"), | ||
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"]) | ||
], | ||
swiftLanguageVersions: [.v4, .v4_2] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// module.modulemap | ||
// ZIPFoundation | ||
// | ||
// Copyright © 2017-2019 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors. | ||
// Released under the MIT License. | ||
// | ||
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information. | ||
// | ||
|
||
module CZlib { | ||
header "shim.h" | ||
link "z" | ||
export * | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// shim.h | ||
// ZIPFoundation | ||
// | ||
// Copyright © 2017-2019 Thomas Zoechling, https://www.peakstep.com and the ZIP Foundation project authors. | ||
// Released under the MIT License. | ||
// | ||
// See https://github.com/weichsel/ZIPFoundation/blob/master/LICENSE for license information. | ||
// | ||
|
||
#ifndef zlib_shim_h | ||
#define zlib_shim_h | ||
|
||
#import <stdio.h> | ||
#import <zlib.h> | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.