If you inspect the
[output](https://travis-ci.org/bitemyapp/esqueleto/jobs/411001100)
from a recent travis build you'll see that the `GHCVER=7.10` and
`GHCVER=8.00` values are preventing tests from actually running:
```
...
The command "stack test -- esqueleto:postgresql" exited with 1.
$ stack test -- esqueleto:sqlite
Getting project config file from STACK_YAML environment
Could not parse '/home/travis/build/bitemyapp/esqueleto/stack-8.0.yaml':
YAML exception:
Yaml file not found: /home/travis/build/bitemyapp/esqueleto/stack-8.0.yaml
See http://docs.haskellstack.org/en/stable/yaml_configuration/
...
```
I've updated to match the 8.2 and 8.4 versions that are live as of d2fdaaf.
42 lines
890 B
YAML
42 lines
890 B
YAML
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
|
|
|
|
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
|
|
|
|
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
|