Skip to content

Commit

Permalink
Add Python 3.8-dev to Tox config
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Viktorin committed Jul 31, 2018
1 parent 363e417 commit ec41070
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ matrix:
- WITH_GCOV=1
dist: xenial
sudo: true
- python: 3.8-dev
env:
- TOXENV=py38
- CFLAGS_std="-std=c99"
- WITH_GCOV=1
dist: xenial
sudo: true
- python: 2.7
env:
- TOXENV=py2-nosasltls
Expand All @@ -53,6 +60,10 @@ matrix:
- python: 3.6
env: TOXENV=doc
allow_failures:
- env:
- TOXENV=py38
- CFLAGS_std="-std=c99"
- WITH_GCOV=1
- env:
- TOXENV=pypy

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

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

script: tox
script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" tox

after_success:
# gather Python coverage
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

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

[testenv]
Expand Down

0 comments on commit ec41070

Please sign in to comment.