]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
add py 3.8 and style to tests
authorDavid Lord <davidism@gmail.com>
Fri, 10 Jan 2020 20:44:39 +0000 (12:44 -0800)
committerDavid Lord <davidism@gmail.com>
Fri, 10 Jan 2020 20:44:39 +0000 (12:44 -0800)
.azure-pipelines.yml
tox.ini

index 48eb1503aad3cce89a7c8ff6f76d367a75ce147c..eabcaf768fcf2028cd78711b4f4ec3a677096027 100644 (file)
@@ -4,32 +4,37 @@ trigger:
 
 variables:
   vmImage: ubuntu-latest
-  python.version: 3.7
+  python.version: '3.8'
   TOXENV: py,coverage-ci
-  hasTestResults: true
+  hasTestResults: 'true'
 
 strategy:
   matrix:
-    Python 3.7 Linux:
+    Python 3.8 Linux:
       vmImage: ubuntu-latest
-    Python 3.7 Windows:
+    Python 3.8 Windows:
       vmImage: windows-latest
-    Python 3.7 Mac:
+    Python 3.8 Mac:
       vmImage: macos-latest
     PyPy 3 Linux:
       python.version: pypy3
+    Python 3.7 Linux:
+      python.version: '3.7'
     Python 3.6 Linux:
-      python.version: 3.6
+      python.version: '3.6'
     Python 3.5 Linux:
-      python.version: 3.5
+      python.version: '3.5'
     Python 2.7 Linux:
-      python.version: 2.7
+      python.version: '2.7'
     Python 2.7 Windows:
-      python.version: 2.7
+      python.version: '2.7'
       vmImage: windows-latest
     Docs:
-      TOXENV: docs-html
-      hasTestResults: false
+      TOXENV: docs
+      hasTestResults: 'false'
+    Style:
+      TOXENV: style
+      hasTestResults: 'false'
 
 pool:
   vmImage: $[ variables.vmImage ]
diff --git a/tox.ini b/tox.ini
index 0928efaf4ece0f658cd8924a64789327d1e170d6..3ee86d1cf555e1c3fd1b130f217dc01c321eb3b5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,8 @@
 [tox]
 envlist =
-    py{37,36,35,27,py3,py}
-    docs-html
+    py{38,37,36,35,27,py3,py}
+    style
+    docs
     coverage
 skip_missing_interpreters = true
 
@@ -11,13 +12,14 @@ deps =
     pytest
 commands = coverage run -p -m pytest --tb=short --basetemp={envtmpdir} {posargs}
 
-[testenv:docs-html]
-deps =
-    Sphinx
-    Pallets-Sphinx-Themes
-    sphinxcontrib-log-cabinet
-    sphinx-issues
-commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
+[testenv:style]
+deps = pre-commit
+skip_install = true
+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