Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 87 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,49 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

jobs:
- job: 'Test_pure_python'
pool:
vmIMage: 'VS2017-Win2016'
strategy:
maxParallel: 6
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'

- script: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install -r requirements.txt
displayName: 'Install dependencies'

- script: |
pip install -Ue .
displayName: 'Install'

- script: |
pip install pytest pytest-sugar

- job: 'Test'
pytest -vvv --junitxml=unit_result.xml test
displayName: 'pytest'

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/unit_result.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()


- job: 'Test_Cythonized'
pool:
vmIMage: 'VS2017-Win2016'
strategy:
Expand All @@ -24,7 +65,10 @@ jobs:
versionSpec: '$(python.version)'
architecture: 'x64'

- script: python -m pip install --upgrade pip && pip install -U setuptools && pip install -r build_requirements.txt
- script: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install -r build_requirements.txt
displayName: 'Install dependencies'

- script: |
Expand All @@ -43,3 +87,44 @@ jobs:
testResultsFiles: '**/unit_result.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()


#- job: 'Build_and_deploy'
# dependsOn:
# - Test_pure_python
# - Test_Cythonized
# condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
# pool:
# vmIMage: 'VS2017-Win2016'
# strategy:
# maxParallel: 6
# matrix:
# Python35:
# python.version: '3.5'
# Python36:
# python.version: '3.6'
# Python37:
# python.version: '3.7'
#
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '$(python.version)'
# architecture: 'x64'
#
# - script: |
# python -m pip install --upgrade pip
# pip install -U setuptools
# pip install -r build_requirements.txt
# displayName: 'Install dependencies'
#
# - script: |
# python setup.py bdist_wheel
# displayName: 'Build'
#
# - task: TwineAuthenticate@0
# inputs:
# externalFeeds: 'PyPI'
#
# - script: "twine -r {PyPI/logwrap} --config-file $(PYPIRC_PATH) dist/logwrap-*"
# displayName: 'Deploy'