Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
103 lines (102 sloc) 3.17 KB
# This file has been generated by travis-meta-yaml 0.2.0.0
# see https://github.com/phadej/travis-meta-yaml
sudo: false
language: c
before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
- if [ -n "$CABALVER" ]; then export PATH=/opt/cabal/$CABALVER/bin:$PATH; fi
- export PATH=~/.local/bin:$PATH
- if [ ! -e ~/.local/bin/stack ]; then mkdir -p ~/.local/bin; travis_retry curl -L
https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1
-C ~/.local/bin '*/stack'; fi
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo
'?')]"
- stack +RTS -N2 -RTS --version
install:
- if [ "$STACK_SOLVER" = "YES" ]; then rm -f stack.yaml; stack update; stack init
--solver; fi; stack --no-terminal --skip-ghc-check list-dependencies|sort > installplan.txt;
cat installplan.txt; stack --no-terminal --skip-ghc-check setup; if diff -u $HOME/.stack-work-cache/installplan.txt
installplan.txt; then echo "cabal build-cache HIT"; rm -rf .stack-work; cp -a $HOME/.stack-work-cache
.stack-work; rm -f .stack-work/installplan.txt; else echo "cabal build-cache MISS";
rm -rf $HOME/.stack-work-cache; stack --no-terminal --skip-ghc-check build --test
--only-dependencies; fi; if [ ! -d $HOME/.stack-work-cache ]; then echo "snapshotting
package-db to build-cache"; cp -a .stack-work $HOME/.stack-work-cache; cp -a installplan.txt
$HOME/.stack-work-cache/installplan.txt; fi;
script:
- stack --no-terminal --skip-ghc-check build --test
- stack --no-terminal --skip-ghc-check sdist
matrix:
fast_finish: true
include:
- env: GHCVER=7.8.4 CABALVER=1.18 STACK_SOLVER=YES
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.8.4
- cabal-install-1.18
- libgmp-dev
compiler: ! ': # ghc-7.8.4 YES'
- env: GHCVER=7.10.2 CABALVER=1.22 STACK_SOLVER=YES
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.2
- cabal-install-1.22
- libgmp-dev
compiler: ! ': # ghc-7.10.2 YES'
- env: GHCVER=7.8.4 STACK_YAML=stack-lts-2.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.8.4
- libgmp-dev
compiler: ! ': # ghc-7.8.4 stack-lts-2.yaml'
- env: GHCVER=7.10.2 STACK_YAML=stack-lts-3.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.2
- libgmp-dev
compiler: ! ': # ghc-7.10.2 stack-lts-3.yaml'
- env: GHCVER=7.10.2 STACK_YAML=stack-nightly.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.2
- libgmp-dev
compiler: ! ': # ghc-7.10.2 stack-nightly.yaml'
- env: GHCVER=head CABALVER=1.22 STACK_SOLVER=YES
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-head
- cabal-install-1.22
- libgmp-dev
compiler: ! ': # ghc-head YES'
allow_failures:
- env: GHCVER=head CABALVER=1.22 STACK_SOLVER=YES
branches:
only:
- master
cache:
directories:
- ~/.stack
- ~/.local
- ~/.stack-work-cache
apt: true
git:
submodules: false