unison/.travis.yml
Arya Irani 5e30293ca1 try using stack to manage ghc
per https://github.com/commercialhaskell/stack/blob/master/doc/travis_ci.md:

    Installing GHC
    ==============

    There are two ways to install GHC:

    - Let Stack download GHC
    - Install GHC using apt plugin

    See [the above scripts](https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml)
    for an example of the first option (letting Stack download GHC).
2018-05-26 11:31:01 -04:00

39 lines
991 B
YAML

# https://docs.haskellstack.org/en/stable/travis_ci/
# run on containerized infrastructure hopefully
dist: trusty
sudo: false
language: generic
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
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'
script:
- stack --no-terminal build && stack --no-terminal exec tests
- pushd runtime-jvm
- sbt main/test:run
- popd
addons:
apt:
packages:
- libgmp-dev
install:
- stack --no-terminal install-ghc test --only-dependencies