-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
74 lines (61 loc) · 1.5 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
# vim: nospell
#
language: c
dist: trusty
sudo: required
cache:
directories:
- $HOME/.stack/snapshots
- $HOME/.local/bin
- .stack-work/install
addons:
apt:
sources:
- hvr-ghc
packages:
- alex-3.1.7
- happy-1.19.5
compiler:
- GHC-8.6.1
- GHC-8.4.1
- GHC-8.2.1
- GHC-8.0.2
- GHC-7.10.3
- GHC-7.8.4
env:
# global:
matrix:
- 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
- source .travis/install-cuda-trusty.sh
- source .travis/install-stack.sh
- source .travis/update-ghc-settings.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:
- travis_retry stack build --fast --only-dependencies --no-terminal
script:
- travis_retry stack build --fast --no-terminal --haddock --no-haddock-deps
after_success:
- source .travis/update-accelerate-buildbot.sh
after_failure:
- dmesg
- ls -R /usr/local/cuda*