From cb9df750fde3b0cc40125c54946a89b7cb77250d Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Sat, 24 Nov 2018 00:53:30 -0500 Subject: [PATCH] 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. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a08fa80..afab053 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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