azure pipelines ci on 1.0.x branch

This commit is contained in:
David Lord 2019-05-16 13:53:49 -07:00
parent ded0f68c16
commit 84f8e1634f
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
6 changed files with 115 additions and 101 deletions

40
tox.ini
View file

@ -1,16 +1,14 @@
[tox]
envlist =
py{37,36,35,34,27,py}
py{37,27,py}-simplejson
py{37,27,py}-devel
py{37,27,py}-lowest
py{37,36,35,27,py3,py}
py37-{simplejson,devel,lowest}
docs-html
coverage-report
coverage
[testenv]
passenv = LANG
deps =
pytest>=3
pytest
coverage
greenlet
blinker
@ -35,26 +33,42 @@ commands =
pip install -q -e examples/javascript[test]
# pytest-cov doesn't seem to play nice with -p
coverage run -p -m pytest tests examples
coverage run -p -m pytest --tb=short {posargs:tests examples}
[testenv:nightly]
# courtesy Python nightly test, don't fail the build in CI
ignore_outcome = true
commands =
pip install -q -e examples/tutorial[test]
pip install -q -e examples/javascript[test]
coverage run -p -m pytest --tb=short --junitxml=test-results.xml {posargs:tests examples}
[testenv:stylecheck]
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs-html]
deps =
-r docs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:coverage-report]
[testenv:coverage]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
coverage report
[testenv:codecov]
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
deps = codecov
[testenv:coverage-ci]
passenv = CODECOV_TOKEN
deps =
coverage
codecov
skip_install = true
commands =
coverage combine
coverage report
codecov
coverage xml
coverage report