-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
29 lines (25 loc) · 973 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
matrix:
allow_failures:
- env: GHCVER=head
env:
- GHCVER=7.8.3
#- GHCVER=head
before_install:
- sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get update
- sudo apt-get install cabal-install-1.20 ghc-$GHCVER
- sudo apt-get remove --purge postgresql-9.1-postgis-scripts
- sudo apt-get install postgresql-9.1-postgis postgresql-9.1 postgresql-server-dev-9.1 postgresql-client-9.1
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
- export CABAL=cabal-1.20
- sudo -u postgres createuser -D -R -S test
- sudo -u postgres psql -d template1 -c "ALTER USER test WITH PASSWORD 'test';"
- sudo -u postgres createdb -E UTF8 -O test -T template0 test
- sudo -u postgres psql -d test -c "CREATE EXTENSION postgis;"
- sudo -u postgres psql -d test -c "GRANT ALL ON geometry_columns TO PUBLIC;"
- sudo -u postgres psql -d test -c "GRANT ALL ON spatial_ref_sys TO PUBLIC;"
install:
- $CABAL update
script:
- travis_retry sh build.sh -j2 --enable-tests
- $CABAL test