Files
OSIT-Mailman3/azure-pipelines.yml
Abhilash Raj e6de13ba44 Update azure-pipelines.yml for Azure Pipelines (#331)
* Update azure-pipelines.yml for Azure Pipelines

* Add Python build scripts.

* Run scripts with Python 3.

* Add strategy for both variants.

* Fix variables for jobs and use the right variant to build.

* Fix build and test script.
2019-05-19 21:02:06 -04:00

39 lines
808 B
YAML

trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
strategy:
maxParallel: 2
matrix:
Stable:
variant: stable
Rolling:
variant: rolling
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
- task: PythonScript@0
inputs:
scriptSource: 'filepath'
scriptPath: 'build.py'
arguments: $(variant)
- task: PythonScript@0
inputs:
scriptSource: 'filepath'
scriptPath: 'test.py'
arguments: $(variant)
- task: Bash@3
inputs:
filePath: 'tests/test.sh'
- task: PythonScript@0
inputs:
scriptSource: 'filePath'
scriptPath: '.travis/deploy.py'
condition: and(eq(variables['Build.SourceBranch'], 'refs/heads/master'),
eq(variables['variant'], 'rolling'))