Skip to content

Commit ea7357b

Browse files
committed
ci: PYTEST_ADDOPTS=-vv in general
This is useful when viewing logs, especially with hanging tests. Uses non-verbose mode with a single job for full coverage.
1 parent 15d6088 commit ea7357b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ stages:
66
if: repo = pytest-dev/pytest AND tag IS NOT present
77
- name: deploy
88
if: repo = pytest-dev/pytest AND tag IS present
9-
python:
10-
- '3.7'
9+
python: '3.7'
10+
cache: false
11+
12+
env:
13+
global:
14+
- PYTEST_ADDOPTS=-vv
15+
1116
install:
1217
- python -m pip install --upgrade --pre tox
1318

@@ -57,7 +62,8 @@ jobs:
5762
# - pytester's LsofFdLeakChecker
5863
# - TestArgComplete (linux only)
5964
# - numpy
60-
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1
65+
# Empty PYTEST_ADDOPTS to run this non-verbose.
66+
- env: TOXENV=py37-lsof-numpy-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS=
6167

6268
# Specialized factors for py27.
6369
- env: TOXENV=py27-nobyte-numpy-xdist
@@ -147,4 +153,3 @@ notifications:
147153
skip_join: true
148154
email:
149155
150-
cache: false

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ trigger:
33
- features
44

55
variables:
6-
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml"
6+
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv"
77
python.needs_vc: False
88
python.exe: "python"
99
COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage"

0 commit comments

Comments
 (0)