Last active
June 6, 2020 07:02
-
-
Save mburumaxwell/56be9a43262274ec87aebb8a6a4458c7 to your computer and use it in GitHub Desktop.
Build and test swift packages in Azure Pipelines
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
# Build and test swift packages with GitVersion | |
trigger: | |
batch: true | |
branches: | |
include: | |
- master | |
pool: | |
vmImage: 'macos-latest' | |
steps: | |
- task: GitVersion@5 | |
displayName: 'GitVersion' | |
- script: swift package resolve | |
failOnStderr: true | |
displayName: 'swift package resolve' | |
- script: swift build --build-tests | |
failOnStderr: true | |
displayName: 'swift build --build-tests' | |
- script: swift test | |
# setting failOnStderr: true will cause failure | |
# because 'swift test' writes content to stderr | |
# failOnStderr: true | |
displayName: 'swift test' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment