-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3204 from pallets/azure
azure pipelines ci on 1.0.x branch
- Loading branch information
Showing
6 changed files
with
115 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
trigger: | ||
- 'master' | ||
- '*.x' | ||
|
||
jobs: | ||
- job: Flask | ||
variables: | ||
vmImage: ubuntu-latest | ||
python.version: '3.7' | ||
python.architecture: 'x64' | ||
TOXENV: 'py,coverage-ci' | ||
publish.test.results: 'true' | ||
CODECOV_TOKEN: '$(codecov.token)' | ||
|
||
strategy: | ||
matrix: | ||
Python37Linux: | ||
python.version: '3.7' | ||
Python37Windows: | ||
python.version: '3.7' | ||
vmImage: 'windows-latest' | ||
Python37Mac: | ||
python.version: '3.7' | ||
vmImage: 'macos-latest' | ||
Pypy3Linux: | ||
python.version: 'pypy3' | ||
Python36Linux: | ||
python.version: '3.6' | ||
Python35Linux: | ||
python.version: '3.5' | ||
Python27Linux: | ||
python.version: '2.7' | ||
Python27Windows: | ||
python.version: '2.7' | ||
vmImage: 'windows-latest' | ||
DocsHtml: | ||
TOXENV: 'docs-html' | ||
publish.test.results: 'false' | ||
VersionRange: | ||
TOXENV: 'devel,lowest,coverage-ci' | ||
|
||
pool: | ||
vmImage: $[ variables.vmImage ] | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: $(python.version) | ||
architecture: $(python.architecture) | ||
displayName: Use Python $(python.version) | ||
|
||
- script: pip --disable-pip-version-check install -U tox | ||
displayName: Install tox | ||
|
||
- script: tox -- --junitxml=test-results.xml tests examples | ||
displayName: Run tox | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: test-results.xml | ||
testRunTitle: $(Agent.JobName) | ||
condition: eq(variables['publish.test.results'], 'true') | ||
displayName: Publish test results | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: coverage.xml | ||
condition: eq(variables['publish.test.results'], 'true') | ||
displayName: Publish coverage results | ||
|
||
# Test on the nightly version of Python. | ||
# Use a container since Azure Pipelines may not have the latest build. | ||
- job: FlaskOnNightly | ||
pool: | ||
vmImage: ubuntu-latest | ||
container: python:rc-stretch | ||
steps: | ||
- script: | | ||
echo "##vso[task.prependPath]$HOME/.local/bin" | ||
pip --disable-pip-version-check install --user -U tox | ||
displayName: Install tox | ||
- script: tox -e nightly | ||
displayName: Run tox |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters