switch tests to azure pipelines
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 0f5f201 · Browse files · 6 files·+91 added−104 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+91 added−104 removed
- other:+91 added−104 removed
Provenance
- Commit
d04d999- Tree
d078929- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
0f5f201
6 files changed+91 added−104 removed
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-html hasTestResults: false
pool: vmImage: $[ variables.vmImage ]
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:.coveragerc-11 removed
1-[run]2-branch = True3-source =4- jinja25- tests6-7-[paths]8-source =9- jinja210- .tox/*/lib/python*/site-packages/jinja211- .tox/pypy/site-packages/jinja2deleted:.travis.yml-46 removed
12345678910111213141516171819202122232425262728293031323334353637383940414243444546dist: xenialsudo: falselanguage: python
python: - 3.7 - 3.6 - 3.5 - 3.4 - 2.7 - pypy3.5-6.0 - pypy2.7-6.0
env: - TOXENV=py,codecov
matrix: include: - python: nightly env: TOXENV=py - python: 3.6 env: TOXENV=docs-html
install: - pip install tox
script: - tox
cache: - pip
branches: only: - master - /^\d+(\.\d+)*(\.x)?$/
notifications: email: false irc: channels: - "chat.freenode.net#pocoo" on_success: change on_failure: always use_notice: true skip_join: trueNo newline at end of filedeleted:Makefile-21 removed
1-test:2- py.test tests --tb=short3-4-develop:5- pip install --editable .6-7-tox-test:8- @tox9-10-release:11- python scripts/make-release.py12-13-upload-docs:14- $(MAKE) -C docs html dirhtml latex15- $(MAKE) -C docs/_build/latex all-pdf16- cd docs/_build/; mv html jinja-docs; zip -r jinja-docs.zip jinja-docs; mv jinja-docs html17- scp -r docs/_build/dirhtml/* flow.srv.pocoo.org:/srv/websites/jinja.pocoo.org/docs/18- scp -r docs/_build/latex/Jinja2.pdf flow.srv.pocoo.org:/srv/websites/jinja.pocoo.org/docs/jinja-docs.pdf19- scp -r docs/_build/jinja-docs.zip flow.srv.pocoo.org:/srv/websites/jinja.pocoo.org/docs/20-21-.PHONY: testmodified:setup.cfg+15 added-4 removed
1-[bdist_wheel]2-universal = 13-1 [metadata]2 license_file = LICENSE3 4+[bdist_wheel]5+universal = true6+7 [tool:pytest]8-minversion = 3.08 testpaths = tests9+10+[coverage:run]11+branch = True12+source =13+ jinja214+ tests15+16+[coverage:paths]17+source =18+ src/jinja219+ .tox/*/lib/python*/site-packages/jinja220+ .tox/*/site-packages/jinja2modified:tox.ini+15 added-22 removed
1 [tox]2 envlist =3- py{36,35,34,33,27,26,py}3+ py{37,36,35,27,py3,py}4 docs-html5- coverage-report5+ coverage6+skip_missing_interpreters = true7 8 [testenv]8-passenv = LANG9-usedevelop = true9 deps =11- pytest>=310 coverage11+ pytest12+commands = coverage run -p -m pytest --tb=short --basetemp={envtmpdir} {posargs}13 14-commands = coverage run -p -m pytest {posargs}15-14 [testenv:docs-html]17-deps = sphinx18-commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html15+deps =16+ Sphinx17+ Pallets-Sphinx-Themes18+ sphinx-issues19+commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html20 20-[testenv:docs-linkcheck]21-deps = sphinx22-commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck23-24-[testenv:coverage-report]21+[testenv:coverage]22 deps = coverage23 skip_install = true24 commands =25 coverage combine29- coverage report26 coverage html27+ coverage report28 32-[testenv:codecov]33-passenv = CI TRAVIS TRAVIS_*34-deps = codecov29+[testenv:coverage-ci]30+deps = coverage31 skip_install = true32 commands =37- # install argparse for 2.638- python -c 'import sys, pip; sys.version_info < (2, 7) and pip.main(["install", "argparse", "-q"])'33 coverage combine40- coverage report41- codecov34+ coverage xml