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:
parent
e7e20c08e9
commit
cb9df750fd
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ after_failure:
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == nightly ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == nightly ]]; then
|
||||||
|
docker restart -t 1 (docker ps -q);
|
||||||
cargo tarpaulin --out Xml;
|
cargo tarpaulin --out Xml;
|
||||||
bash <(curl -s https://codecov.io/bash);
|
bash <(curl -s https://codecov.io/bash);
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue