-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
78 lines (65 loc) · 1.6 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
# vim: nospell
#
language: c
dist: trusty
cache:
timeout: 600
directories:
- $HOME/.stack
- $HOME/.local/bin
- $TRAVIS_BUILD_DIR/.stack-work
addons:
apt:
sources:
- hvr-ghc
packages:
- alex-3.1.7
- happy-1.19.5
compiler:
- GHC-8.10.1
- GHC-8.8.3
- GHC-8.6.5
- GHC-8.4.4
- GHC-8.2.2
- GHC-8.0.2
# - GHC-7.10.3
# - GHC-7.8.4
env:
# global:
matrix:
- CUDA=10.1.105-1
- CUDA=10.0.130-1
- CUDA=8.0.61-1
- CUDA=7.5-18
- CUDA=7.0-28
- CUDA=6.5-14
matrix:
fast_finish: true
# allow_failures:
before_install:
- export GHC=${CC:4}
- unset CC
- export PATH=/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$PATH
- export CUDA_INSTALL_EXTRA_LIBS=0
- source .travis/install-cuda-trusty.sh
- source .travis/install-stack.sh
# # ghc-8.6 builds a broken version of c2hs
# - |
# if [ ${GHC%.*} == "8.6" -a ! -x "$(which c2hs)" ]; then
# travis_retry stack --stack-yaml=stack-8.4.yaml setup --no-terminal --no-system-ghc
# travis_retry stack --stack-yaml=stack-8.4.yaml install c2hs --fast --no-terminal
# fi
# build environment
- echo "$(stack exec ghc -- --version) [$(stack exec ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]"
- stack --version
- nvcc --version
install:
- export FLAGS="--fast --jobs=2 --no-terminal --no-copy-bins --no-interleaved-output"
- travis_retry stack build --only-dependencies
script:
- travis_retry stack build --haddock --no-haddock-deps
after_success:
- source .travis/update-accelerate-buildbot.sh
after_failure:
- dmesg
- ls -R /usr/local/cuda*