inflections-hs/.travis.yml
2016-02-25 08:48:59 -05:00

34 lines
988 B
YAML

# This file is based on a generated file.
# See https://github.com/hvr/multi-ghc-travis.
language: c
sudo: false
cache:
directories:
- $HOME/.stack
matrix:
include:
- env: ARGS="--resolver lts-2"
compiler: ": # lts-2 gch-7.8.4"
- env: ARGS="--resolver lts-3"
compiler: ": # lts-3 gch-7.10.2"
- env: ARGS="--resolver lts"
compiler: ": # lts"
before_install:
# Using compiler above sets CC to an invalid value, so unset it
- unset CC
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# This line does all of the work: installs GHC if necessary, build the library,
# executables, and test suites, and runs the test suites. --no-terminal works
# around some quirks in Travis's terminal implementation.
script: stack $ARGS --no-terminal --install-ghc test --haddock --no-haddock-deps