]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
remove test and coverage results from ci
authorDavid Lord <davidism@gmail.com>
Mon, 27 Jan 2020 06:21:08 +0000 (22:21 -0800)
committerDavid Lord <davidism@gmail.com>
Mon, 27 Jan 2020 06:21:08 +0000 (22:21 -0800)
.azure-pipelines.yml
MANIFEST.in
setup.cfg
tox.ini

index eabcaf768fcf2028cd78711b4f4ec3a677096027..680a15cbf088a85169e4fc07d8108b630cfd0c51 100644 (file)
@@ -5,7 +5,7 @@ trigger:
 variables:
   vmImage: ubuntu-latest
   python.version: '3.8'
-  TOXENV: py,coverage-ci
+  TOXENV: py
   hasTestResults: 'true'
 
 strategy:
@@ -26,9 +26,6 @@ strategy:
       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'
@@ -48,19 +45,5 @@ steps:
   - script: pip --disable-pip-version-check install -U tox
     displayName: Install tox
 
-  - script: tox -s false -- --junit-xml=test-results.xml
+  - script: tox
     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 results
index 8cae0c743c6bb86b21ef4ef0395c9650918b8236..909102a77aa62138582b8c61a1e23b287f79b39d 100644 (file)
@@ -1,7 +1,9 @@
-include CHANGES.rst tox.ini
+include CHANGES.rst
+include tox.ini
 graft artwork
 graft docs
 prune docs/_build
 graft examples
 graft ext
 graft tests
+global-exclude *.pyc
index efa15ca9d30df7cdad5ca02f7c601b4d7e6ac90d..2769e96ade5505d4fe01ed0802b497925a543e9b 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,6 @@
 [metadata]
 license_file = LICENSE.rst
+long_description_content_type = text/x-rst
 
 [bdist_wheel]
 universal = true
@@ -18,9 +19,8 @@ source =
 
 [coverage:paths]
 source =
-    src/jinja2
-    .tox/*/lib/python*/site-packages/jinja2
-    .tox/*/site-packages/jinja2
+    src
+    */site-packages
 
 [flake8]
 # B = bugbear
diff --git a/tox.ini b/tox.ini
index 3ee86d1cf555e1c3fd1b130f217dc01c321eb3b5..679ebebe91cf05320b3fd482c4d77c02d588980e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -3,14 +3,12 @@ envlist =
     py{38,37,36,35,27,py3,py}
     style
     docs
-    coverage
 skip_missing_interpreters = true
 
 [testenv]
 deps =
-    coverage
     pytest
-commands = coverage run -p -m pytest --tb=short --basetemp={envtmpdir} {posargs}
+commands = pytest --tb=short --basetemp={envtmpdir} {posargs}
 
 [testenv:style]
 deps = pre-commit
@@ -20,19 +18,3 @@ commands = pre-commit run --all-files --show-diff-on-failure
 [testenv:docs]
 deps = -r docs/requirements.txt
 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
-
-[testenv:coverage]
-deps = coverage
-skip_install = true
-commands =
-    coverage combine
-    coverage html
-    coverage report
-
-[testenv:coverage-ci]
-deps = coverage
-skip_install = true
-commands =
-    coverage combine
-    # Ignoring errors because 2.7.15 and 3.5.5 on Azure can't parse async files.
-    coverage xml --ignore-errors