forked from bitemyapp/esqueleto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (42 loc) · 1.09 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
language: c
services:
- mysql
addons:
postgresql: "10"
apt:
packages:
- libgmp-dev
- postgresql-10
- postgresql-client-10
- postgresql-server-dev-all
env:
global:
- PGPORT=5432
matrix:
- GHCVER=8.2
- GHCVER=8.4
- GHCVER=8.6
- GHCVER=8.8
- GHCVER=nightly
jobs:
fast_finish: true
allow_failures:
- env: GHCVER=nightly
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
- psql -c "CREATE USER esqutest WITH PASSWORD 'esqutest';" -U postgres
- createdb -O esqutest esqutest
- mysql -e 'CREATE DATABASE esqutest;'
- stack setup
script:
- stack build --fast $(if [[ $GHCVER == "nightly" ]]; then echo "--resolver nightly"; fi)
- stack test --fast $(if [[ $GHCVER == "nightly" ]]; then echo "--resolver nightly"; fi)
- cd test/expected-compile-failures/
- bash test.sh
cache:
directories:
- $HOME/.stack