Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43c3d70

Browse files
committed
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).
1 parent 9e4260b commit 43c3d70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,10 @@ after_success:
143143
fi
144144
fi
145145
fi
146-
coveralls
146+
if [[ $BUILD_DOCS == false ]]; then
147+
# account for us running the test out-of-repo and coveralls expects in-repo
148+
# tests
149+
mv cover .coverage ../matplotlib
150+
cd ../matplotlib
151+
coveralls
152+
fi

0 commit comments

Comments
 (0)