-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
53 lines (43 loc) · 1.23 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
51
# Adapted from https://github.com/commercialhaskell/stack
language: c
sudo: false
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- .stack-work
matrix:
include:
# ghc 8.0.1
- env: STACK='stack --resolver=lts-7.4' CACHE_NAME=8.0.1
addons: {apt: {packages: [libgmp-dev]}}
# ghc 8.0.2
- env: STACK='stack --resolver=lts-8.24' CACHE_NAME=8.0.2
addons: {apt: {packages: [libgmp-dev]}}
# ghc 8.2.2
- env: STACK='stack --resolver=lts-11.5' CACHE_NAME=8.2.2
addons: {apt: {packages: [libgmp-dev]}}
# Use the resolver in stack.yaml
- env: STACK=stack CACHE_NAME=stack-linux
addons: {apt: {packages: [libgmp-dev]}}
- env: STACK=stack CACHE_NAME=stack-osx
os: osx
addons: {apt: {packages: [libgmp-dev]}}
install:
- unset CC
- export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
- ./.travis/install-ghr.sh
- ./.travis/install-stack.sh
script:
- echo "$(stack ghc -- --version) [$(stack ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]"
- GHC_OPTIONS="-Werror"
- |
set -ex
# Run tests
$STACK --no-terminal test --ghc-options="$GHC_OPTIONS"
set +ex
after_success:
- |
# Build and ship binary
./.travis/attach-binary.sh