-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
40 lines (34 loc) · 1017 Bytes
/
.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
sudo: false
dist: xenial
language: generic
env:
global:
- GCC=gcc-5
- GXX=g++-5
cache:
directories:
- $HOME/.stack/
addons:
apt:
packages:
- gcc-5
- g++-5
- libgmp-dev
sources:
- llvm-toolchain-xenial-9
- ubuntu-toolchain-r-test
before_install:
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- export CC=/usr/bin/$GCC
- export CXX=/usr/bin/$GXX
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
- echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" | sudo tee -a /etc/apt/sources.list
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/ppa
- sudo apt-get update
- sudo apt-get --yes install llvm-9 llvm-9-dev
install:
- stack --no-terminal --install-ghc test --only-dependencies
script:
- stack --no-terminal test --haddock --no-haddock-deps