Merge pull request #1314 from t-eckert/azure-pipelines
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Set up CI with Azure Pipelines
authored by David Lord · committed by GitHub · parents 0049354, 045a11d · Browse files · 4 files·+70 added−99 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+70 added−99 removed
- other:+70 added−99 removed
Provenance
- Commit
9f1f303- Tree
3d1784b- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
0049354- Parent 2
045a11d
4 files changed+70 added−99 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: falsemodified: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