forked from lpeterse/haskell-terminal
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (27 loc) · 814 Bytes
/
.travis.yml
File metadata and controls
31 lines (27 loc) · 814 Bytes
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
language: nix
sudo: false
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- .stack-work
matrix:
fast_finish: true
include:
- env: GHCVER=8.4.4 CACHE_NAME=8.4.4 BUILD_BINARY=1
compiler: ": #stack 8.4.4"
addons: {apt: {packages: [ghc-8.4.4], sources: [hvr-ghc]}}
install:
- unset CC
- export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
- mkdir -p ~/.local/bin
- curl -sL https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- travis_retry stack --no-terminal setup
script:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- GHC_OPTIONS="-Werror"
- |
set -ex
stack --no-terminal test --ghc-options="$GHC_OPTIONS"
set +ex