Skip to content

Commit

Permalink
Complete 'Azure Pipelines' configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Dec 18, 2020
1 parent 753d63a commit 8bd9910
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,34 +109,35 @@ steps:
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
- script: python -m pip install --upgrade pip setuptools
- bash: python -m pip install --upgrade pip setuptools
displayName: 'Install packaging tools'
- script: python -m pip install -r requirements.txt
- bash: python -m pip install -r requirements.txt
displayName: 'Install dependencies'
- script: python -m doctest README.md
- bash: python -m pip install --upgrade coverage codecov
displayName: 'Install coverage dependencies'
- bash: coverage run -m doctest README.md
displayName: 'Run doctests'
- script: python -m pip install -r requirements-tests.txt
- bash: python -m pip install -r requirements-tests.txt
displayName: 'Install tests dependencies'
- script: pytest
- bash: coverage run --append -m pytest
displayName: 'Run tests'
- script: python -m pip install --upgrade codecov
condition: succeeded()
displayName: 'Install coverage dependencies'
- script: python -m codecov -f coverage.xml -X gcov
- bash: coverage xml
displayName: 'Collect coverage'
- bash: python -m codecov -f coverage.xml -X gcov
condition: succeeded()
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- script: python -m pip install --upgrade wheel
- bash: python -m pip install --upgrade wheel
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Install build dependencies'
- script: python setup.py sdist bdist_wheel
- bash: python setup.py sdist bdist_wheel
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Build'
- script: python -m pip install --upgrade twine
- bash: python -m pip install --upgrade twine
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Install deploy dependencies'
- script: twine upload --skip-existing dist/*
- bash: twine upload --skip-existing dist/*
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Deploy'
env:
Expand Down

0 comments on commit 8bd9910

Please sign in to comment.