Merge pull request #3172 from vtbassmatt/enhance-azure-pipelines
Before adoption: this commit came in with the history the project adopted, so no landing records it.
add test output and a run against Python RC
authored by David Lord · committed by GitHub · parents 49a0464, 41186d3 · Browse files · 2 files·+81 added−46 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+81 added−46 removed
- other:+81 added−46 removed
Provenance
- Commit
4260b7c- Tree
76f3eff- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
49a0464- Parent 2
41186d3
2 files changed+81 added−46 removed
modified:.azure-pipelines.yml+71 added-45 removed
12234564567878910111213101112131415161718192021222324252627282930313233341415161718192021222324252627282930313233343536373839403637414243394041424344454647484945465051524849535455515253565758596061626364656667686970717273747576777879trigger:- master- 'master'- '*-maintenance'
jobs:- job: Flaskvariables: vmImage: ubuntu-latest python.version: '3.7' TOXENV: 'py,codecov' python.architecture: 'x64' variables: vmImage: ubuntu-latest python.version: '3.7' TOXENV: 'py,codecov' python.architecture: 'x64' publish.test.results: 'true'
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 VersionRange: TOXENV: devel,lowest,codecov 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,codecov
pool: vmImage: $[ variables.vmImage ] pool: vmImage: $[ variables.vmImage ]
steps:- task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture) steps: - task: UsePythonVersion@0 inputs: versionSpec: $(python.version) architecture: $(python.architecture)
- script: pip install -U tox displayName: 'Install tox' - script: pip install -U tox displayName: 'Install tox'
- script: tox displayName: 'Run tox' - script: tox displayName: 'Run tox'
# TODO: add codecov token# TODO: emit JUnit test results# TODO: build on nightly - task: PublishTestResults@2 inputs: testResultsFiles: 'test-results.xml' testRunTitle: '$(Agent.JobName)' condition: eq(variables['publish.test.results'], 'true') # TODO: add codecov token
# As a courtesy, try this on the dev version of Python# Use a container since Azure Pipelines may not have the bleeding-edge Python RC- job: FlaskOnLatest pool: { vmImage: ubuntu-latest } variables: TOXENV: 'future' container: python:rc-stretch steps: - script: | echo "##vso[task.prependPath]$HOME/.local/bin" pip install -U --user tox displayName: 'Install tox' # don't fail the build if this doesn't work! - script: tox displayName: 'Run tox'modified:tox.ini+10 added-1 removed
33 unmodified lines34 pip install -q -e examples/tutorial[test]35 pip install -q -e examples/javascript[test]36 37 # pytest-cov doesn't seem to play nice with -p38+ coverage run -p -m pytest --junitxml=test-results.xml tests examples39+40+[testenv:future]41+ignore_outcome = true42+43+commands =44+ pip install -q -e examples/tutorial[test]45+ pip install -q -e examples/javascript[test]46+47 coverage run -p -m pytest tests examples48 49 [testenv:stylecheck]50 deps = pre-commit13 unmodified lines64 coverage report65 coverage html66 67 [testenv:codecov]59-passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*68+passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* BUILD_* SYSTEM_* AGENT_* TF_BUILD69 deps = codecov70 skip_install = true71 commands =72 coverage combine2 unmodified lines