-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (38 loc) · 1.08 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
# NB: don't set `language: haskell` here
sudo: false
env:
- GHCVER=7.10.1 STACK_YAML=stack.yaml
# 2015.07.20, builds with GHC HEAD fail: do not waste energy
# - GHCVER=head STACK_YAML=stack.yaml
#
# matrix:
# allow_failures:
# - env: GHCVER=head STACK_YAML=stack.yaml
before_install:
# put GHC in the path
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
# install stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.2.0/stack-0.1.2.0-x86_64-linux.gz | gunzip > ~/.local/bin/stack
- chmod a+x ~/.local/bin/stack
# log versions
- stack --version
- ghc --version
install:
- ./.travis_long.sh stack --no-terminal --skip-ghc-check setup
- ./.travis_long.sh stack --no-terminal --skip-ghc-check test --only-snapshot
before_script:
- psql -c 'create database lambdacmsorg_test;' -U postgres
script:
- stack --no-terminal --skip-ghc-check test
cache:
directories:
- $HOME/.stack
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.1
- ghc-head