forked from python-ldap/python-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (71 loc) · 1.61 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
76
77
78
79
language: python
sudo: false
cache: pip
addons:
apt:
packages:
- ldap-utils
- slapd
- enchant
# Note: when updating Python versions, also change setup.py and tox.ini
matrix:
include:
- python: 2.7
env:
- TOXENV=py27
- WITH_GCOV=1
- python: 3.4
env:
- TOXENV=py34
- WITH_GCOV=1
- python: 3.5
env:
- TOXENV=py35
- WITH_GCOV=1
- python: 3.6
env:
- TOXENV=py36
- WITH_GCOV=1
- python: pypy
env:
- TOXENV=pypy
- python: 3.7-dev
env:
- TOXENV=py37
- WITH_GCOV=1
- python: 2.7
env:
- TOXENV=py2-nosasltls
- 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=py37
- WITH_GCOV=1
- env:
- TOXENV=pypy
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="-std=c90 -Wno-int-in-bool-context -Werror -Werror=declaration-after-statement"
# 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
after_success:
# gather Python coverage
- python -m coverage combine
# send Python and GCOV coverage
- codecov