Skip to content

Commit c5eaa1f

Browse files
committed
Simplify configuration for C code coverage
1 parent 9aa7a39 commit c5eaa1f

2 files changed

Lines changed: 11 additions & 22 deletions

File tree

.travis.yml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
language: python
22

3+
python:
4+
- '2.7'
5+
- '3.3'
6+
- '3.4'
7+
- '3.5'
8+
- '3.6'
9+
# Note: when updating Python versions, also change setup.py and tox.ini
10+
311
sudo: false
412

513
cache: pip
@@ -10,28 +18,8 @@ addons:
1018
- ldap-utils
1119
- slapd
1220

13-
matrix:
14-
include:
15-
- python: 2.7
16-
env:
17-
- TOXENV=py27
18-
- WITH_GCOV=1
19-
- python: 3.3
20-
env:
21-
- TOXENV=py33
22-
- WITH_GCOV=1
23-
- python: 3.4
24-
env:
25-
- TOXENV=py34
26-
- WITH_GCOV=1
27-
- python: 3.5
28-
env:
29-
- TOXENV=py35
30-
- WITH_GCOV=1
31-
- python: 3.6
32-
env:
33-
- TOXENV=py36
34-
- WITH_GCOV=1
21+
env:
22+
- WITH_GCOV=1
3523

3624
install:
3725
- pip install "pip>=7.1.0"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class OpenLDAP2:
5656
LDAP_CLASS.extra_files[i]=(destdir, origfileslist)
5757

5858
if os.environ.get('WITH_GCOV'):
59+
# Insrumentation for measuring code coverage
5960
LDAP_CLASS.extra_compile_args.extend(
6061
['-O0', '-pg', '-fprofile-arcs', '-ftest-coverage']
6162
)

0 commit comments

Comments
 (0)