-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.2 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
52
53
54
55
56
os: linux
dist: focal
language: generic
git:
depth: 5
cache:
directories:
- "$HOME/.cabal/store"
- "$HOME/.stack"
- "$TRAVIS_BUILD_DIR/.stack-work"
addons:
apt:
sources:
- sourceline: "ppa:hvr/ghc"
packages:
- ghc-8.6.5
- ghc-8.8.3
- ghc-8.10.4
- ghc-9.0.1
env:
- GHCVER=8.6.5 STACK_YAML="$TRAVIS_BUILD_DIR/stack-8.6.5.yaml"
- GHCVER=8.8.3 STACK_YAML="$TRAVIS_BUILD_DIR/stack-8.8.3.yaml"
- GHCVER=8.10.4 STACK_YAML="$TRAVIS_BUILD_DIR/stack-8.10.4.yaml"
- GHCVER=9.0.1 STACK_YAML="$TRAVIS_BUILD_DIR/stack-9.0.1.yaml"
before_install:
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install:
# HLint check
- curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
- |
if [ -z "$STACK_YAML" ]; then
cabal v2-update
cabal v2-build --enable-tests --enable-benchmarks
else
curl -sSL https://get.haskellstack.org/ | sh
stack --version
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --ghc-options='-Werror -Wno-deprecations'
fi
script:
- |
if [ -z "$STACK_YAML" ]; then
cabal v2-test --enable-tests
else
stack test --system-ghc
fi
notifications:
email: false