Skip to content

Commit

Permalink
Travis: Turn compiler warnings into fatal errors
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
Christian Heimes committed Nov 29, 2017
1 parent 67c69e7 commit bdbe614
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ matrix:
- python: 3.6
env: TOXENV=doc

env:
global:
# -Wno-int-in-bool-context: don't complain about PyMem_MALLOC()
# -Werror: turn all warnings into fatal errors
- CFLAGS="-Wno-int-in-bool-context -Werror"
# pass CFLAGS and WITH_GCOV to tox tasks
- TOX_TESTENV_PASSENV="CFLAGS WITH_GCOV"

install:
- pip install "pip>=7.1.0"
- pip install tox-travis tox codecov coverage
Expand Down

0 comments on commit bdbe614

Please sign in to comment.