diff options
author | Sebastian Kreft <skreft@deezer.com> | 2014-07-18 17:53:47 +0200 |
---|---|---|
committer | ysitu <ysitu@users.noreply.github.com> | 2014-08-04 16:05:04 -0400 |
commit | 25fd2a07bdc45cb3b0d919a86277b33a427ee525 (patch) | |
tree | 331634163550d2d48df4302cdb4451ede8aa69f5 /.travis.yml | |
parent | c32575ca5a0f5d831a503c3ee77efd74b1873e3f (diff) | |
download | networkx-25fd2a07bdc45cb3b0d919a86277b33a427ee525.tar.gz |
Added fixcoveragepy script that fixes the path in coverage files.
Conflicts:
.travis.yml
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 945975fe..e9ee5f8b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -132,15 +132,21 @@ script: fi after_success: - # We must run coveralls from the git repo. But we ran tests from the - # installed directory. The .coverage file looks like it contains absolute - # paths, but coveralls does not seem to care. + # `coveralls` needs to be run from the git repository, and it requires + # the .coverage file that was generated during the testing phase. The + # .coverage file stores absolute paths to the modules, and since we ran + # tests from the installed directory, the paths do not point to files in + # the git repository. Although this does not affect reported statistics, + # it does prevent coveralls from providing more detailed information on + # each file. So the paths in .coverage must be modified to match the + # repository paths. This is what `fixcoverage.py` does. # # Report coverage for 2.7 and 3.4 only. - if [[ "${PYTHON_VM}" != ipy ]]; then cp .coverage $TRAVIS_BUILD_DIR; cd $TRAVIS_BUILD_DIR; if [[ "${TRAVIS_PYTHON_VERSION}${OPTIONAL_DEPS}" =~ 2\.7pip|3\.4source ]]; then + python fixcoverage.py "$VIRTUAL_ENV/lib/python.*/site-packages/networkx/" "$TRAVIS_BUILD_DIR/networkx/"; coveralls; fi; fi |