ci: add azure pipelines

This commit is contained in:
Christopher Felegy
2019-03-16 16:26:12 -04:00
parent 049b014518
commit 9b2bc18c5c
3 changed files with 56 additions and 0 deletions

25
azure-pipelines.yml Normal file
View File

@@ -0,0 +1,25 @@
variables:
buildConfiguration: Release
buildTag: $[ startsWith(variables['Build.SourceBranch'], 'refs/tags') ]
buildNumber: $[ variables('Build.BuildNumber') ]
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- template: azure/build.yml
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- template: azure/build.yml
- template: azure/deploy.yml
# TODO: condition check for dev branch
condition: |
and (
succeeded(),
eq(variables['Build.SourceBranch'], 'refs/heads/ci/azure')
)