From fefb86db47c327df862260e4858f9d62997ac0d8 Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Mon, 1 Jun 2015 11:25:03 -0300 Subject: [PATCH] Travis: Delete database files after running tests. Currently PostgreSQL is dying on GHC 7.10 but not on GHC 7.8. Hypothesis: The files left over from the acid-state local storage test are consuming resources that PostgreSQL needs. These files are not created on GHC 7.8, only on GHC 7.10. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index abe80cf..4838aae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,5 +56,8 @@ script: - cabal-meta install --enable-tests --enable-benchmarks --force-reinstalls - serversession/dist/build/tests/tests - serversession-backend-acid-state/dist/build/tests/tests + - du -hcs state; rm -Rfv state - serversession-backend-persistent/dist/build/tests/tests + - du -hcs test.db*; rm -Rfv test.db* + - psql -c 'SELECT COUNT(*) FROM "persistent_session";' -U test test; psql -c 'DROP DATABASE test;' -U postgres - serversession-backend-redis/dist/build/tests/tests