-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
63 lines (50 loc) · 1.73 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
# RRN: Copied from template here: https://github.com/hvr/multi-ghc-travis/blob/master/README.md#ghc-head-snapshots
# NB: don't set `language: haskell` here
sudo: false
cache:
directories:
- $HOME/.stack/
notifications:
email: false
git:
submodules: false
env:
- STACK_RESOLVER=default
FLAGS=lvish:nonidem
- STACK_RESOLVER=lts-5.11
FLAGS=lvish:nonidem
- STACK_RESOLVER=lts-6.10
FLAGS=lvish:nonidem
- STACK_RESOLVER=default
FLAGS=lvish:-nonidem
- STACK_RESOLVER=lts-5.11
FLAGS=lvish:-nonidem
- STACK_RESOLVER=lts-6.10
FLAGS=lvish:-nonidem
addons: {apt: {packages: [libgmp-dev]}}
# allow_failures:
# # We should track these failures, but they're not really our direct responsibility
# - env: STACK_RESOLVER=ghc-7.8
# - env: STACK_RESOLVER=ghc-7.10
# This is stack-specific. Oh well.
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- cat /proc/cpuinfo | grep name
# Used by .travis_install.sh below:
- export STACK_YAML=stack-${STACK_RESOLVER}.yaml
- wget https://www.stackage.org/stack/linux-x86_64 -O stack.tar.gz
- tar xvf stack.tar.gz
- mv -f stack-*/stack ~/.local/bin/
- chmod a+x ~/.local/bin/stack
install:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
# Build but do not test:
- ./.travis_install.sh
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
script:
- stack test --flag $FLAGS --no-terminal
# TODO: bring back at least compiling here:
# - stack build --no-terminal ./src/lvish-extras/