You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

# Use new container infrastructure to enable caching
sudo: false
8 years ago
# Choose a lightweight base image; we provide our own build tools.
language: c
# GHC depends on GMP. You can add other dependencies here as well.
- libgmp-dev
# The different configurations we want to test. You could also do things like
# change flags or use --stack-yaml to point to a different file.
- ARGS=""
#- ARGS="--resolver lts-2"
#- ARGS="--resolver lts-3"
#- ARGS="--resolver lts"
#- ARGS="--resolver nightly"
8 years ago
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L | tar xz --strip-components=1 -C ~/.local/bin stack-
8 years ago
# 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.
# Avoid running out of memory on Travis
8 years ago
- stack $ARGS --no-terminal --install-ghc build haskell-src-exts
- stack $ARGS --no-terminal --install-ghc install hscolour
- stack $ARGS --no-terminal --install-ghc test --haddock --no-haddock-deps # --pedantic
8 years ago
# Caching so the next build will be fast too.
- $HOME/.stack