-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
33 lines (27 loc) · 898 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
# Need to install cwiid package
sudo: true
# Choose a lightweight base image; we provide our own build tools.
language: c
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
matrix:
include:
- env: GHCVER=8.0.1 STACK_YAML=stack.yaml
addons: {apt: {packages: [ghc-8.0.1,libcwiid-dev], sources: [hvr-ghc]}}
before_install:
- date
- cat /proc/cpuinfo
- cd ${HOME}
# Install stack
- mkdir -p ${HOME}/.local/bin
- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ${HOME}/.local/bin '*/stack'
- export PATH=/opt/ghc/${GHCVER}/bin:/opt/cabal/${CABALVER}/bin:${HOME}/.local/bin:${HOME}/.cabal/bin:${PATH}
- ghc --version
script:
- cd ${TRAVIS_BUILD_DIR}
- stack --no-terminal --skip-ghc-check install gtk2hs-buildtools
- stack --no-terminal --skip-ghc-check install
after_script:
- date