-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
33 lines (26 loc) · 875 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
# Use new container infrastructure to enable caching
sudo: false
# Do not choose a language; we provide our custom build tool - Stack
language: generic
addons:
apt:
packages:
- libgmp-dev
- git
- openssh-client
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- ssh-keygen -t rsa -C "[email protected]" -P "" -f ~/.ssh/id_rsa
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- git config --global url."https://github".insteadOf git://github
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- chmod a+x ~/.local/bin/stack
install:
- stack +RTS -N2 -RTS setup
- stack --no-terminal --install-ghc test --only-dependencies
script:
#- stack --no-terminal test --haddock --no-haddock-deps
cache:
directories:
- $HOME/.stack