forked from bitemyapp/esqueleto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 945 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: c
sudo: false
services:
- postgresql
- mysql
addons:
apt:
packages:
- libgmp-dev
- postgresql-client
- postgresql-server-dev-all
postgresql: "9.6"
env:
- GHCVER=8.2
- GHCVER=8.4
- GHCVER=8.6
install:
- export STACK_YAML=stack-$GHCVER.yaml
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack --version
- echo "CREATE USER esqutest WITH PASSWORD 'esqutest';" | psql postgres
- createdb -O esqutest esqutest
- mysql -e 'CREATE DATABASE esqutest;'
script:
- stack setup
- stack update
- stack build
- stack test -- esqueleto:postgresql
- stack test -- esqueleto:sqlite
- stack test -- esqueleto:mysql || exit 0 # TODO: Remove that exit 0 when mysql tests are checking correctly
cache:
directories:
- $HOME/.stack