on 2bbc8a9 help sign in
stackage/.travis.yml
40 lines 1.0 kB history raw
1# Use new container infrastructure to enable caching
2sudo: false
4# Choose a lightweight base image; we provide our own build tools.
5language: generic
7# GHC depends on GMP. You can add other dependencies here as well.
8addons:
9 apt:
10 packages:
11 - libgmp-dev
13env:
14- GHCVER=8.0.2
16install:
17 # Download and unpack the stack executable
18 - mkdir -p ~/.local/bin
19 - export PATH=$HOME/.local/bin:$PATH
20 - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
22 # Get stackage-curator
23 - wget https://s3.amazonaws.com/stackage-travis/stackage-curator/stackage-curator.bz2
24 - bunzip2 stackage-curator.bz2
25 - chmod +x stackage-curator
26 - mv stackage-curator ~/.local/bin
28 # Install GHC and cabal-install
29 - stack setup $GHCVER
31 # Update the index
32 - travis_retry stack update
34script:
35 - stack --resolver ghc-$GHCVER exec stackage-curator check
37cache:
38 directories:
39 - $HOME/.stack
40 - $HOME/.stackage/curator/cache