This commit is contained in:
Markus Cozowicz 2019-07-30 15:10:25 +02:00
Родитель e1786d0172
Коммит 89cff7f7db
2 изменённых файлов: 26 добавлений и 36 удалений

Просмотреть файл

@ -1,37 +1,2 @@
parameters:
pythonVersions: ["3.7", "3.6", "3.5"] #, "2.7"]
operatingSystems: ["ubuntu-16.04", 'macos-10.13', 'vs2017-win2016']
jobs:
- job:
strategy:
matrix:
${{ each job in parameters.jobs }}:
${{ each py in parameters.pythonVersions }}:
${{ each os in parameters.operatingSystems }}:
${{ format('{0}{1}', py, os) }}:
vmImage: ${os}
python.version: ${py}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: |
cd python
pip install -e .[test]
displayName: 'Install Package'
- script: |
cd python
pytest --junitxml=junit/test-unitttest.xml
displayName: 'Python Unit Tests'
env:
myserviceprincipal1: $(test_service_principal_secret)
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-unitttest.xml'
testRunTitle: 'Test results for PyTest'
- template: template-pipelines.yaml

Просмотреть файл

@ -0,0 +1,25 @@
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- script: |
cd python
pip install -e .[test]
displayName: 'Install Package'
- script: |
cd python
pytest --junitxml=junit/test-unitttest.xml
displayName: 'Python Unit Tests'
env:
myserviceprincipal1: $(test_service_principal_secret)
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-unitttest.xml'
testRunTitle: 'Test results for PyTest'