* 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.
39 lines
808 B
YAML
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'))
|