human-readable-duration/.travis.yml
Yann Esposito (Yogsototh) 1c0f8ff8d0
wip
2016-05-23 01:09:33 +02:00

25 lines
718 B
YAML

sudo: false
addons:
apt:
packages:
- libgmp-dev
# Caching so the next build will be fast too.
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'
- stack setup --resolver=lts-5.15
script:
- stack test :doctest --no-terminal --coverage --ghc-options '-fforce-recomp'
after_script:
- travis_retry curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.2.0/shc-linux-x64-$GHCVER.tar.bz2 | tar -xj
- ./shc human-readable-duration doctest