Skip to content

Instantly share code, notes, and snippets.

@mburumaxwell
Last active June 6, 2020 07:02
Show Gist options
  • Save mburumaxwell/56be9a43262274ec87aebb8a6a4458c7 to your computer and use it in GitHub Desktop.
Save mburumaxwell/56be9a43262274ec87aebb8a6a4458c7 to your computer and use it in GitHub Desktop.
Build and test swift packages in Azure Pipelines
# 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