-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
50 lines (44 loc) · 1.36 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
sudo: false
language: c
matrix:
include:
- env: BUILD=stack GHCVER=7.10.3 STACK_YAML=stack.yaml
compiler: ": #stack 7.10.3"
addons: {apt: {packages: [ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
- env: BUILD=stack GHCVER=7.10.3 STACK_YAML=stack-old.yaml
compiler: ": #stack 7.10.3 (ShellCheck-0.4.2)"
addons: {apt: {packages: [ghc-7.10.3,happy-1.19.5], sources: [hvr-ghc]}}
- env: BUILD=stack STACK_YAML=stack.yaml
compiler: ": #stack 7.10.3 osx"
os: osx
- env: BUILD=stack STACK_YAML=stack-old.yaml
compiler: ": #stack 7.10.3 osx (ShellCheck-0.4.2)"
os: osx
before_install:
- unset CC
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:/opt/happy/1.19.5/bin:$PATH
- ./.travis-setup.sh
- ghc --version || stack exec -- ghc --version
- happy --version || true
- cabal --version || true
- stack --version || true
- tick --version || true
install:
- case "$BUILD" in
tinc)
tinc;;
stack)
stack --no-terminal test --only-dependencies;;
esac
script:
- case "$BUILD" in
tinc)
cabal configure --enable-tests --ghc-options=-Werror --disable-optimization && cabal build && cabal test;;
stack)
stack --no-terminal test --haddock --no-haddock-deps;;
esac
cache:
directories:
- $HOME/.tinc/cache
- $HOME/.stack
- ./.stack-work