summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.azure-pipelines.yml18
-rw-r--r--tox.ini6
2 files changed, 9 insertions, 15 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index d88465a..86e7010 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -30,6 +30,8 @@ strategy:
python.version: '2.7'
Docs:
TOXENV: docs
+ Style:
+ TOXENV: style
pool:
vmImage: $(vmImage)
@@ -43,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
diff --git a/tox.ini b/tox.ini
index 30c16da..beed51d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,7 @@
[tox]
envlist =
py{38,37,36,35,27,py3,py}
+ style
docs
skip_missing_interpreters = true
@@ -10,6 +11,11 @@ deps =
colorama
commands = pytest --tb=short --basetemp={envtmpdir} {posargs}
+[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