-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
45 lines (35 loc) · 1.16 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
# Use new container infrastructure to enable caching
sudo: false
cache:
directories:
- $HOME/.stack
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.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'
addons:
apt:
packages:
- libgmp3-dev
- python-docutils
before_script:
# Set up stack globally (download ghc)
- stack setup 8.2.2
- ./generate-stack-yaml.hs
- cat stack.yaml
# Now that there is a stack.yaml file, this command sets up stack locally
- stack --no-terminal setup
# Prebuild this dependency separately because building it takes a lot of memory.
# It has caused me out-of-memory errors on Travis several times.
- stack --no-terminal build --fast -j 2 haskell-src-exts
- stack --no-terminal build --fast -j 2
script: stack exec diagrams-doc -- buildh
notifications:
email: false
irc:
channels:
- "irc.freenode.org#diagrams"
skip_join: true
template:
- "\x0313diagrams-doc\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"