Skip to content

Commit 8b72ddb

Browse files
committed
Travis: Turn compiler warnings into fatal errors
Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent 68808f6 commit 8b72ddb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ matrix:
3737
- python: 3.6
3838
env: TOXENV=doc
3939

40+
env:
41+
global:
42+
# -Wno-int-in-bool-context: don't complain about PyMem_MALLOC()
43+
# -Werror: turn all warnings into fatal errors
44+
- CFLAGS="-Wno-int-in-bool-context -Werror"
45+
# pass CFLAGS and WITH_GCOV to tox tasks
46+
- TOX_TESTENV_PASSENV="CFLAGS WITH_GCOV"
47+
4048
install:
4149
- pip install "pip>=7.1.0"
4250
- pip install tox-travis tox codecov coverage

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ envlist = py27,py33,py34,py35,py36,doc,coverage-report
1010
[testenv]
1111
deps = coverage
1212
passenv = WITH_GCOV
13-
# - Enable BytesWarning
13+
# - Enable BytesWarning
1414
# - Turn all warnings into exceptions.
1515
# - 'ignore:the imp module is deprecated' is required to ignore import of
1616
# 'imp' in distutils. Python 3.3 and 3.4 use PendingDeprecationWarning.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy