Update Swifts in CI; Test Xcode 11

This commit is contained in:
Max Howell
2019-07-21 16:15:45 -04:00
parent 45b0b59a94
commit 462a62920f

View File

@@ -5,7 +5,7 @@ stages:
- name: pretest - name: pretest
- name: test - name: test
- name: deploy - name: deploy
if: branch =~ ^\d+\.\d+\.\d+$ if: branch =~ /^\d+\.\d+\.\d+(-.*)?$/
os: osx os: osx
language: swift language: swift
@@ -25,6 +25,10 @@ jobs:
osx_image: xcode10.2 osx_image: xcode10.2
script: swift test --parallel script: swift test --parallel
- name: macOS / Swift 5.1
osx_image: xcode11
script: swift test --parallel
- &xcodebuild - &xcodebuild
before_install: swift package generate-xcodeproj --enable-code-coverage before_install: swift package generate-xcodeproj --enable-code-coverage
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
@@ -47,18 +51,21 @@ jobs:
after_success: false after_success: false
- &linux - &linux
env: SWIFT_VERSION=4.2.1 env: SWIFT_VERSION=4.2.4
os: linux os: linux
name: Linux / Swift 4.2.1 name: Linux / Swift 4.2.4
language: generic language: generic
dist: trusty
sudo: false sudo: false
install: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" install: eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
script: swift test --parallel script: swift test --parallel
- <<: *linux - <<: *linux
env: SWIFT_VERSION='5.0' env: SWIFT_VERSION='5.0.2'
name: Linux / Swift 5.0.0 name: Linux / Swift 5.0.2
- <<: *linux
env: SWIFT_VERSION=5.1-DEVELOPMENT-SNAPSHOT-2019-07-03-a
name: Linux / Swift 5.1 (2019-07-03)
- stage: pretest - stage: pretest
name: Check Linux tests are syncd name: Check Linux tests are syncd