-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.travis.yml
64 lines (56 loc) · 1.36 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
sudo: false
language: generic
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
services:
- mysql
- postgresql
matrix:
include:
- env: GHC-VER=8.2.2 STACK_YAML="stack-ghc-8.2.yaml"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.2.2
- env: GHC-VER=8.4.3 STACK_YAML="stack-ghc-8.4.yaml"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.4.3
- env: GHC-VER=8.6 STACK_YAML="stack-ghc-8.6.yaml"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.6
# ghc-8.8
- env: GHC-VER=8.8.3 STACK_YAML="stack-ghc-8.8.yaml"
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.8.3
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
before_script:
- cd groundhog-test/
- psql --username=postgres --file=init_postgresql.sql
- mysql --user=root < init_mysql.sql
- cd ..
script:
- stack test --no-terminal --skip-ghc-check --flag groundhog-test:mysql --flag groundhog-test:postgresql --flag groundhog-test:sqlite groundhog-test