forked from python-ldap/python-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (69 loc) · 1.83 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: python
group: travis_latest
cache: pip
addons:
apt:
packages:
- ldap-utils
- slapd
- enchant
# Note: when updating Python versions, also change setup.py and tox.ini
matrix:
include:
- os: osx
osx_image: xcode11.4
language: minimal
env:
- TOXENV=macos
- CFLAGS_warnings="-Wall -Werror=declaration-after-statement"
- CFLAGS_std="-std=c99"
- python: 3.6
env:
- TOXENV=py36
- WITH_GCOV=1
- python: pypy3
env:
- TOXENV=pypy3
- CFLAGS_std="-std=c99"
- python: 3.7
env:
- TOXENV=py37
- CFLAGS_std="-std=c99"
- WITH_GCOV=1
- python: 3.8
env:
- TOXENV=py38
- CFLAGS_std="-std=c99"
- WITH_GCOV=1
- python: 3.9
env:
- TOXENV=py39
- CFLAGS_std="-std=c99"
- WITH_GCOV=1
- python: 3.6
env:
- TOXENV=py3-nosasltls
- WITH_GCOV=1
- python: 3.6
env:
- TOXENV=py3-trace
- python: 3.6
env: TOXENV=doc
allow_failures:
- env:
- TOXENV=pypy3
env:
global:
# -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_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:
- python3 -m pip install "pip>=7.1.0"
- python3 -m pip install tox-travis tox codecov
script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" python3 -m tox