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.
This commit is contained in:
Felipe Lessa 2015-06-01 11:25:03 -03:00
parent 056d47ee23
commit fefb86db47

View File

@ -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