forked from kowainik/relude
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
96 lines (86 loc) · 1.89 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
sudo: true
language: haskell
git:
depth: 5
cache:
directories:
- "$HOME/.cabal"
- "$HOME/.ghc"
- "$HOME/.stack"
- "$TRAVIS_BUILD_DIR/.stack-work"
matrix:
include:
- ghc: 8.0.2
env: GHCVER='8.0.2' CABALVER='head'
os: linux
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.2
- cabal-install-head
- ghc: 8.2.2
env: GHCVER='8.2.2' CABALVER='head'
os: linux
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.2.2
- cabal-install-head
- ghc: 8.4.3
env: GHCVER='8.4.3' CABALVER='head'
os: linux
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.4.3
- cabal-install-head
- ghc: 8.6.1
env: GHCVER='8.6.1' CABALVER='head'
os: linux
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.6.1
- cabal-install-head
- ghc: 8.4.3
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
os: linux
addons:
apt:
packages:
- libgmp-dev
install:
- |
if [ -z "$STACK_YAML" ]; then
export PATH="/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH"
echo $PATH
cabal new-update
cabal new-build --enable-tests --enable-benchmarks
else
echo "$TRAVIS_BUILD_DIR"
mkdir -p ~/.local/bin
export PATH="$HOME/.local/bin:$PATH"
travis_retry curl -L 'https://www.stackage.org/stack/linux-x86_64' | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
stack --version
stack setup --no-terminal
stack ghc -- --version
stack build --only-dependencies --no-terminal
fi
script:
- |
if [ -z "$STACK_YAML" ]; then
cabal new-test
cabal new-haddock
else
stack build --test --bench --no-run-tests --no-run-benchmarks --no-terminal
fi
notifications:
email: false