Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0ef143

Browse files
committed
ci: Install pytest-warnings to report warnings.
1 parent 3e2e31e commit c0ef143

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ environment:
1414
CMD_IN_ENV: cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd
1515
# Workaround for https://github.com/conda/conda-build/issues/636
1616
PYTHONIOENCODING: UTF-8
17-
PYTEST_ARGS: -ra --timeout=300 --durations=25 -n %NUMBER_OF_PROCESSORS% --cov-report= --cov=lib -m "not network"
17+
PYTEST_ARGS: -raw --timeout=300 --durations=25 -n %NUMBER_OF_PROCESSORS% --cov-report= --cov=lib -m "not network"
1818
PYTHONHASHSEED: 0 # Workaround for pytest-xdist flaky collection order
1919
# https://github.com/pytest-dev/pytest/issues/920
2020
# https://github.com/pytest-dev/pytest/issues/1075
@@ -95,6 +95,7 @@ install:
9595
- if %PYTHON_VERSION% == 2.7 conda install -q backports.functools_lru_cache
9696
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
9797
- conda install -q pytest "pytest-cov>=2.3.1" pytest-timeout pytest-xdist
98+
- pip install -q pytest-warnings
9899

99100
# Let the install prefer the static builds of the libs
100101
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ env:
4646
- INSTALL_PEP8=
4747
- RUN_PEP8=
4848
- NOSE=
49-
- PYTEST_ARGS="-ra --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
49+
- PYTEST_ARGS="-raw --maxfail=1 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
5050
- PYTHON_ARGS=
5151
- DELETE_FONT_CACHE=
5252

@@ -119,7 +119,7 @@ install:
119119
pip install $PRE -r doc-requirements.txt
120120
121121
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
122-
pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-timeout pytest-xdist pytest-faulthandler $INSTALL_PEP8
122+
pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-faulthandler pytest-timeout pytest-warnings pytest-xdist $INSTALL_PEP8
123123
124124
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
125125
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later

0 commit comments

Comments
 (0)