Skip to content

Commit 426ceb5

Browse files
committed
Add CFLAGS and -std=c90 runs to tox config
1 parent 7d69790 commit 426ceb5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

tox.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
# Note: when updating Python versions, also change setup.py and .travis.yml
8-
envlist = py36,py37,py38,py39,py3-nosasltls,doc,py3-trace
7+
# Note: when updating Python versions, also change setup.py and .github/worlflows/*
8+
envlist = py{36,37,38,39},c90-py{36,37},py3-nosasltls,doc,py3-trace
99
minver = 1.8
1010

1111
[gh-actions]
@@ -21,6 +21,8 @@ deps =
2121
passenv = WITH_GCOV
2222
# - Enable BytesWarning
2323
# - Turn all warnings into exceptions.
24+
setenv =
25+
CFLAGS=-Wno-int-in-bool-context -Werror -Werror=declaration-after-statement -std=c99
2426
commands = {envpython} -bb -Werror \
2527
-m unittest discover -v -s Tests -p 't_*' {posargs}
2628

@@ -51,6 +53,11 @@ setenv =
5153
PYTHON_LDAP_TRACE_FILE={envtmpdir}/trace.log
5254
commands = {[testenv]commands}
5355

56+
[testenv:c90]
57+
setenv =
58+
CFLAGS=-Wno-int-in-bool-context -Werror -Werror=declaration-after-statement -std=c90
59+
commands = {envpython} -Werror -c "import ldap" # we just test compilation here
60+
5461
[testenv:macos]
5562
# Travis CI macOS image does not have slapd
5663
# SDK libldap does not support ldap_init_fd

0 commit comments

Comments
 (0)