Skip to content

Commit ec41070

Browse files
committed
Add Python 3.8-dev to Tox config
1 parent 363e417 commit ec41070

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.travis.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ matrix:
3939
- WITH_GCOV=1
4040
dist: xenial
4141
sudo: true
42+
- python: 3.8-dev
43+
env:
44+
- TOXENV=py38
45+
- CFLAGS_std="-std=c99"
46+
- WITH_GCOV=1
47+
dist: xenial
48+
sudo: true
4249
- python: 2.7
4350
env:
4451
- TOXENV=py2-nosasltls
@@ -53,6 +60,10 @@ matrix:
5360
- python: 3.6
5461
env: TOXENV=doc
5562
allow_failures:
63+
- env:
64+
- TOXENV=py38
65+
- CFLAGS_std="-std=c99"
66+
- WITH_GCOV=1
5667
- env:
5768
- TOXENV=pypy
5869

@@ -61,15 +72,18 @@ env:
6172
# -Wno-int-in-bool-context: don't complain about PyMem_MALLOC()
6273
# -Werror: turn all warnings into fatal errors
6374
# -Werror=declaration-after-statement: strict ISO C90
64-
- CFLAGS="-std=c90 -Wno-int-in-bool-context -Werror -Werror=declaration-after-statement"
75+
- CFLAGS_warnings="-Wno-int-in-bool-context -Werror -Werror=declaration-after-statement"
76+
# Keep C90 compatibility where possible.
77+
# (Python 3.8+ headers use C99 features, so this needs to be overridable.)
78+
- CFLAGS_std="-std=c90"
6579
# pass CFLAGS, CI (for Travis CI) and WITH_GCOV to tox tasks
6680
- TOX_TESTENV_PASSENV="CFLAGS CI WITH_GCOV"
6781

6882
install:
6983
- pip install "pip>=7.1.0"
7084
- pip install tox-travis tox codecov coverage
7185

72-
script: tox
86+
script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" tox
7387

7488
after_success:
7589
# gather Python coverage

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[tox]
77
# Note: when updating Python versions, also change setup.py and .travis.yml
8-
envlist = py27,py34,py35,py36,py37,{py2,py3}-nosasltls,doc,py3-trace,coverage-report
8+
envlist = py27,py34,py35,py36,py37,py38,{py2,py3}-nosasltls,doc,py3-trace,coverage-report
99
minver = 1.8
1010

1111
[testenv]

0 commit comments

Comments
 (0)