From 8a222d4a42ab7789c70fb1b60dbb49e22b63271e Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Sun, 31 May 2015 13:53:24 -0300 Subject: [PATCH] Travis: First try at having Redis and PostgreSQL ready. --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8905b11..3dd7ebb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ # NB: don't set `language: haskell` here +services: + - redis-server + # The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for. env: #- CABALVER=1.16 GHCVER=6.12.3 @@ -40,6 +43,11 @@ install: - travis_retry cabal update - cabal install cabal-src cabal-meta alex happy +before_script: + - psql -c "CREATE USER test WITH PASSWORD 'test';" -U postgres + - psql -c "CREATE DATABASE test;" -U postgres + - psql -c "GRANT ALL PRIVILEGES ON DATABASE test TO test;" -U postgres + # Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail. script: - cabal-meta install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls