Skip to content

Commit e0babd4

Browse files
committed
Coverage 4.0 is broken with Python 3.2. Use an older version for travis
Re-enable the combine step See: menegazzo/travispy#20
1 parent d411eb6 commit e0babd4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ before_install:
1515
- sudo apt-get install -qq gccxml
1616
# Install pep8, needed by the unit tests
1717
- pip install pep8
18-
# Install coverage tools
19-
- pip install coverage
18+
# Install coverage tools (On 3.2 the new coverage is broken, use an old one)
19+
# https://github.com/menegazzo/travispy/issues/20
20+
- if [ $TRAVIS_PYTHON_VERSION == 3.2 ];
21+
then pip install coverage<4; else
22+
pip install coverage;
23+
fi
2024
- pip install coveralls
2125

2226
install:
@@ -31,7 +35,7 @@ script:
3135
# Run the tests with coverage
3236
- coverage run unittests/test_all.py
3337
# Combine multiple .coverage files (we have multiple files because some scripts were run in a subprocess).
34-
# - coverage combine
38+
- coverage combine
3539

3640
after_success:
3741
# Send coverage result to https://coveralls.io/r/gccxml/pygccxml

0 commit comments

Comments
 (0)