Test Swift 4.0.3 also

This commit is contained in:
Max Howell
2019-02-14 02:34:23 +00:00
parent d7a9819350
commit a644208c62
2 changed files with 9 additions and 9 deletions

10
.github/deploy vendored
View File

@@ -5,7 +5,7 @@ import PMKFoundation // PromiseKit/Foundation ~> 3.3
import LegibleError // @mxcl ~> 1.0 import LegibleError // @mxcl ~> 1.0
import Foundation import Foundation
import PromiseKit // @mxcl ~> 6.8 import PromiseKit // @mxcl ~> 6.8
import Path // mxcl/Path.swift == master import Path // mxcl/Path.swift ~> 0.15
let env = ProcessInfo.processInfo.environment let env = ProcessInfo.processInfo.environment
let token = env["GITHUB_TOKEN"] ?? env["GITHUB_ACCESS_TOKEN"]! let token = env["GITHUB_TOKEN"] ?? env["GITHUB_ACCESS_TOKEN"]!
@@ -20,12 +20,6 @@ func fatal(error: Error) -> Never {
fatal(message: "\(error.legibleLocalizedDescription)\n\n\(error.legibleDescription)") fatal(message: "\(error.legibleLocalizedDescription)\n\n\(error.legibleDescription)")
} }
guard let licenseFile = try Path.cwd.ls().files.first(where: {
$0.basename().hasPrefix("LICENSE")
})?.basename() else {
fatal(message: "no LICENSE file found")
}
struct Repo: Decodable { struct Repo: Decodable {
let description: String let description: String
let license: License let license: License
@@ -124,7 +118,7 @@ func podspec(repo: Repo, user: User, pkg: Package) -> (Substring, String) {
s.version = '\(tag)' s.version = '\(tag)'
s.summary = '\(repo.description)' s.summary = '\(repo.description)'
s.homepage = "https://github.com/\(slug)" s.homepage = "https://github.com/\(slug)"
s.license = { type: '\(repo.license.spdx_id)', file: '\(licenseFile)' } s.license = '\(repo.license.spdx_id)'
s.author = { '\(user.name)': '\(user.email)' } s.author = { '\(user.name)': '\(user.email)' }
s.source = { git: "https://github.com/\(slug).git", tag: '\(tag)' } s.source = { git: "https://github.com/\(slug).git", tag: '\(tag)' }
s.social_media_url = 'https://twitter.com/\(owner)' s.social_media_url = 'https://twitter.com/\(owner)'

View File

@@ -15,8 +15,12 @@ xcode_scheme: Path.swift-Package
jobs: jobs:
include: include:
- name: macOS / Swift 4.0.3
script: swift test --parallel -Xswiftc -swift-version -Xswiftc 4
- name: macOS / Swift 4.2.1 - name: macOS / Swift 4.2.1
script: swift test --parallel script: swift test --parallel
- name: macOS / Swift 5.0 - name: macOS / Swift 5.0
osx_image: xcode10.2 osx_image: xcode10.2
script: swift test --parallel script: swift test --parallel
@@ -26,9 +30,11 @@ jobs:
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
name: iOS / Swift 4.2.1 name: iOS / Swift 4.2.1
after_success: bash <(curl -s https://codecov.io/bash) after_success: bash <(curl -s https://codecov.io/bash)
- <<: *xcodebuild - <<: *xcodebuild
xcode_destination: platform=tvOS Simulator,OS=latest,name=Apple TV xcode_destination: platform=tvOS Simulator,OS=latest,name=Apple TV
name: tvOS / Swift 4.2.1 name: tvOS / Swift 4.2.1
- <<: *xcodebuild - <<: *xcodebuild
name: watchOS / Swift 4.2.1 name: watchOS / Swift 4.2.1
script: | script: |
@@ -52,7 +58,7 @@ jobs:
- <<: *linux - <<: *linux
env: SWIFT_VERSION='5.0-DEVELOPMENT-SNAPSHOT-2019-01-22-a' env: SWIFT_VERSION='5.0-DEVELOPMENT-SNAPSHOT-2019-01-22-a'
name: Linux / Swift 5.0.0-dev+2019-01-22 name: Linux / Swift 5.0.0-dev+2019.01.22
- stage: pretest - stage: pretest
name: Check Linux tests are syncd name: Check Linux tests are syncd