8000 TST: Enable coveralls/codecov code coverage by jenshnielsen · Pull Request #4678 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

TST: Enable coveralls/codecov code coverage #4678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Nov 16, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST : move coverage output where coveralls expects
We run tests out-of-repo which is to ensure that we pick up
the installed version of mpl, not version which happens to be
in the current directory (but I am not sure we strictly need this
any more now that absolute imports are a thing).  The coveralls scripts
assume that you are running your tests _in_ the repo and are trying to
extract git information from the directory they are run in, hence are
failing for everything but the doc builds (which don't run nose so
have no coverage).

This exclude the doc build from uploading to coveralls and moves
the cover output to be where coveralls expects it to be (and cds
back into the repo).
  • Loading branch information
tacaswell authored and jenshnielsen committed Nov 15, 2015
commit 38e559b95cf351d010180afd6cf657dc75266abb
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,10 @@ after_success:
fi
fi
fi
coveralls
if [[ $BUILD_DOCS == false ]]; then
# account for us running the test out-of-repo and coveralls expects in-repo
# tests
mv cover .coverage ../matplotlib
cd ../matplotlib
coveralls
fi
0