forked from AccelerateHS/accelerate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (57 loc) · 1.54 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
# vim: nospell
#
language: minimal
dist: xenial
cache:
timeout: 600
directories:
- $HOME/.stack
- $HOME/.local/bin
- $TRAVIS_BUILD_DIR/.stack-work
before_cache:
# - rm -vrf $(stack path --local-install-root)/bin
- rm -rf $(stack path --local-install-root)/doc
- rm -f $HOME/.stack/programs/*/*.tar.bz2
addons:
apt:
sources: &apt_sources
- hvr-ghc
packages: &apt_packages
- alex-3.1.7
- happy-1.19.5
- libgmp-dev
matrix:
fast_finish: true
include:
- env: GHC=8.8.2
compiler: "GHC 8.8"
- env: GHC=8.6.5
compiler: "GHC 8.6"
- env: GHC=8.4.4
compiler: "GHC 8.4"
- env: GHC=8.2.2
compiler: "GHC 8.2"
before_install:
- export PATH=/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:${PATH}
- source .travis/install-stack.sh
- |
case ${GHC%.*} in
8.0) ;; # too slow ._.
* ) export HADDOCK="--haddock --no-haddock-deps" ;;
esac
# build environment
- echo "$(stack exec ghc -- --version) [$(stack exec ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]"
- stack --version
install:
- export FLAGS="--fast --no-terminal --no-copy-bins --flag accelerate:nofib"
- travis_retry stack build $FLAGS --only-dependencies --test
script:
- stack build $FLAGS $HADDOCK --test --no-run-tests
- stack test accelerate:doctest $FLAGS
- stack test accelerate:nofib-interpreter $FLAGS --test-arguments='--hedgehog-tests 25'
after_success:
- source .travis/update-accelerate-buildbot.sh
after_failure:
- ulimit -a
- df -h
- dmesg