update azure pipelines and tox configs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent dd70bce · Browse files · 5 files·+70 added−162 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+70 added−162 removed
- other:+70 added−162 removed
Provenance
- Commit
045a11d- Tree
3d1784b- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
dd70bce
5 files changed+70 added−162 removed
deleted:.appveyor.yml-28 removed
12345678910111213141516171819202122232425262728environment: global: TOXENV: py,codecov
matrix: - PYTHON: C:\Python37-x64 - PYTHON: C:\Python27-x64 - PYTHON: C:\Python37 - PYTHON: C:\Python27
init: - SET PATH=%PYTHON%;%PATH%
install: - python -m pip install -U tox
build: false
test_script: - python -m tox
branches: only: - master - /^.*\.x$/
cache: - '%LOCALAPPDATA%\pip\Cache'added:.azure-pipelines.yml+61 added
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061trigger: - master - "*.x"
variables: vmImage: ubuntu-latest python.version: "3.7" TOXENV: py,coverage-ci hasTestResults: true
strategy: matrix: Python 3.7 Linux: vmImage: ubuntu-latest Python 3.7 Windows: vmImage: windows-latest Python 3.7 Mac: vmImage: macos-latest PyPy 3 Linux: python.version: pypy3 Python 3.6 Linux: python.version: 3.6 Python 3.5 Linux: python.version: 3.5 Python 2.7 Linux: python.version: 2.7 Python 2.7 Windows: python.version: 2.7 vmImage: windows-latest Docs: TOXENV: docs hasTestResults: false
pool: vmImage: $(image)
steps: - task: UsePythonVersion@0 inputs: versionSpec: "$(python.version)" displayName: Use Python $(python.version)
- script: pip --disable-pip-version-check install -U tox displayName: Install tox
- script: tox -s false -- --junit-xml=test-results.xml displayName: Run tox
- task: PublishTestResults@2 inputs: testResultsFiles: test-results.xml testRunTitle: $(Agent.JobName) condition: eq(variables['hasTestResults'], 'true') displayName: Publish test results
- task: PublishCodeCoverageResults@1 inputs: codeCoverageTool: Cobertura summaryFileLocation: coverage.xml condition: eq(variables['hasTestResults'], 'true') displayName: Publish coverage resultsdeleted:.travis.yml-55 removed
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455os: linuxsudo: falselanguage: pythonpython: - "3.6" - "3.5" - "3.4" - "2.7" - "nightly" - "pypy3" - "pypy"env: TOXENV=py,codecov
matrix: include: - env: TOXENV=docs-html - os: osx language: generic env: TOXENV=py3,py2,codecov cache: pip: false directories: - $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/pip allow_failures: - python: nightly - python: pypy3 - python: pypy - os: osx fast_finish: true
before_install: - | if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew upgrade python brew install python@2 export PATH="/usr/local/opt/python/libexec/bin:${PATH}" fi
install: - pip install tox
script: - tox
cache: - pip
branches: only: - master - /^.*\.x$/
notifications: email: falsedeleted:azure-pipelines.yml-63 removed
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263# Python package# Create and test a Python package on multiple Python versions.# Add steps that analyze code, save the dist with the build record, # publish to a PyPI-compatible index, and more:# https://docs.microsoft.com/azure/devops/pipelines/languages/pythonvariables: latestPythonVersion: '3.7'
trigger:- master
strategy: matrix: # Test across operating systems on latest Python version linuxLatest: image: ubuntu-16.04 python.version: $(latestPythonVersion) toxenv: py,codecov macOSLatest: image: macos-10.13 python.version: $(latestPythonVersion) toxenv: py,codecov windowsLatest: image: vs2017-win2016 python.version: $(latestPythonVersion) toxenv: py,codecov # Test across previous Python versions linuxPython36: image: ubuntu-16.04 python.version: '3.6' toxenv: py,codecov linuxPython35: image: ubuntu-16.04 python.version: '3.5' toxenv: py,codecov linuxPython27: image: ubuntu-16.04 python.version: '2.7' toxenv: py,codecov # Docs docs: image: ubuntu-16.04 python.version: $(latestPythonVersion) toxenv: docs-html
pool: vmImage: $(image)
steps:- task: UsePythonVersion@0 inputs: versionSpec: '$(python.version)' displayName: 'Use Python $(python.version) on $(vmImage)'
- script: | python -m pip install --upgrade pip pip install tox displayName: 'Install tox'
- script: tox env: TOXENV: toxenv displayName: 'Run tox'modified:tox.ini+9 added-16 removed
1 [tox]2 envlist =3- py{37,36,35,34,27,py3,py}4- docs-html5- coverage-report3+ py{37,36,35,27,py3,py}4+ docs5+ coverage6 skip_missing_interpreters = true7 8 [testenv]9-passenv = LANG9 deps =10 pytest11 coverage12 colorama14-commands = coverage run -p -m pytest {posargs}13+commands = coverage run -p -m pytest --tb=short -Werror --basetemp={envtmpdir} {posargs}14 16-[testenv:docs-html]15+[testenv:docs]16 deps = -r docs/requirements.txt17 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html18 20-[testenv:docs-linkcheck]21-deps = -r docs/requirements.txt22-commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs {envtmpdir}/linkcheck23-24-[testenv:coverage-report]19+[testenv:coverage]20 deps = coverage21 skip_install = true22 commands =23 coverage combine29- coverage report24 coverage html25+ coverage report26 32-[testenv:codecov]33-passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*27+[testenv:coverage-ci]28 deps = codecov29 skip_install = true30 commands =31 coverage combine38- coverage report39- codecov32+ coverage xml