-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
43 lines (38 loc) · 1.21 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
sudo: false
language: generic
cache:
directories:
- $HOME/.stack
- $HOME/.local/bin
- .stack-work/
matrix:
include:
- os: linux
env:
- LLVM_PACKAGE="clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04"
- os: osx
env:
- LLVM_PACKAGE="clang+llvm-8.0.0-x86_64-apple-darwin"
before_install:
- wget http://releases.llvm.org/8.0.0/${LLVM_PACKAGE}.tar.xz
- tar -xf ${LLVM_PACKAGE}.tar.xz
- export PATH=${TRAVIS_BUILD_DIR}/${LLVM_PACKAGE}/bin:$PATH
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- |
if [ `uname` = "Darwin" ]
then
travis_retry curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
- stack install happy alex
script:
- stack setup
- stack build
- stack install cabal-install
- stack exec -- cabal update
- stack test --no-run-tests
- stack build && (cd packages/lhc-prim/; stack exec -- cabal install --haskell-suite -w `stack exec -- which lhc`)
- stack test
- stack clean