Pretest that fails if Linux tests aren't current
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
if: type != push OR branch = master OR branch =~ /^\d+\.\d+(\.\d+)?(-\S*)?$/
|
if: type != push OR branch = master OR branch =~ /^\d+\.\d+(\.\d+)?(-\S*)?$/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- name: pretest
|
||||||
- name: test
|
- name: test
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: branch =~ ^\d+\.\d+\.\d+$
|
if: branch =~ ^\d+\.\d+\.\d+$
|
||||||
@@ -17,6 +18,11 @@ jobs:
|
|||||||
- script: swift test
|
- script: swift test
|
||||||
name: macOS
|
name: macOS
|
||||||
|
|
||||||
|
- stage: pretest
|
||||||
|
name: Check if Linux tests are up-to-date
|
||||||
|
install: swift test --generate-linuxmain
|
||||||
|
script: git diff --exit-code
|
||||||
|
|
||||||
- &xcodebuild
|
- &xcodebuild
|
||||||
before_install: swift package generate-xcodeproj
|
before_install: swift package generate-xcodeproj
|
||||||
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
|
xcode_destination: platform=iOS Simulator,OS=latest,name=iPhone XS
|
||||||
@@ -34,7 +40,6 @@ jobs:
|
|||||||
-destination 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 4 - 40mm' \
|
-destination 'platform=watchOS Simulator,OS=latest,name=Apple Watch Series 4 - 40mm' \
|
||||||
build | xcpretty
|
build | xcpretty
|
||||||
|
|
||||||
|
|
||||||
- env: SWIFT_VERSION=4.2.1
|
- env: SWIFT_VERSION=4.2.1
|
||||||
os: linux
|
os: linux
|
||||||
name: Linux
|
name: Linux
|
||||||
|
|||||||
Reference in New Issue
Block a user