From c058f5286de8cc3f10a034065960436b05713fac Mon Sep 17 00:00:00 2001 From: "David R. MacIver" Date: Tue, 18 Aug 2015 08:40:13 +0100 Subject: [PATCH] Cache hypothesis storage directory This isn't strictly necessary, but the new test is quite slow to minimize when a failure is found, which it typically is right now. Caching the .hypothesis directory means that examples will persist between runs, which both speeds up the build and helps keep consistency between runs so that causes to failures persist. --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2261d41f..539f1837 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,14 @@ python: - 3.4 - pypy +cache: + directories: + - $HOME/.hypothesis + +env: + global: + - HYPOTHESIS_STORAGE_DIRECTORY=$HOME/.hypothesis + install: - travis_retry pip install python-coveralls nose-cov hypothesis - pip install .