Travis: First try at having Redis and PostgreSQL ready.
This commit is contained in:
parent
fdbce5f767
commit
8a222d4a42
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
# NB: don't set `language: haskell` here
|
# 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.
|
# 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:
|
env:
|
||||||
#- CABALVER=1.16 GHCVER=6.12.3
|
#- CABALVER=1.16 GHCVER=6.12.3
|
||||||
@ -40,6 +43,11 @@ install:
|
|||||||
- travis_retry cabal update
|
- travis_retry cabal update
|
||||||
- cabal install cabal-src cabal-meta alex happy
|
- 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.
|
# 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:
|
script:
|
||||||
- cabal-meta install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
|
- cabal-meta install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user