Restart test server in case tests aren't reentrant

Specifically, if a test doesn't clean up nicely after itself, running it
a second time for checking coverage might make it fail! We restart the
docker server so that all the server state is erased, which should
mitigate that.
This commit is contained in:
Jon Gjengset 2018-11-24 00:53:30 -05:00
parent e7e20c08e9
commit cb9df750fd
No known key found for this signature in database
GPG key ID: D64AC9D67176DC71

View file

@ -45,6 +45,7 @@ after_failure:
after_success: |
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == nightly ]]; then
docker restart -t 1 (docker ps -q);
cargo tarpaulin --out Xml;
bash <(curl -s https://codecov.io/bash);
fi