-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
50 lines (43 loc) · 1.26 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
# Adapted from https://github.com/commercialhaskell/stack
language: nix
sudo: false
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- /nix
matrix:
fast_finish: true
include:
# Add build targets here
- env: GHCVER=8.0.2
compiler: ": #stack 8.0.2"
addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
- env: GHCVER=8.2.1
compiler: ": #stack 8.2.1"
addons: {apt: {packages: [ghc-8.2.1], sources: [hvr-ghc]}}
- env: GHCVER=8.0.2
compiler: ": #stack 8.0.2 osx"
os: osx
# Note: the distinction between `before_install` and `install` is not important.
# - in before_install we install build tools
# - in install we install (haskell) dependencies
before_install:
- unset CC
- export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
- ./.travis-setup.sh
install:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
# Note: we build store by itself below due to high memory usage
- |
set -ex
stack --no-terminal build store
stack --no-terminal test --only-dependencies
set +ex
script:
- GHC_OPTIONS="-Werror"
- |
set -ex
stack --no-terminal test --haddock --no-haddock-deps --ghc-options="$GHC_OPTIONS"
set +ex