unison/.travis.yml
Peter Becich b53e8edb29 trusty
2017-04-05 17:04:53 -07:00

41 lines
1.1 KiB
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
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'
# Configure stack to use the system GHC installation
- stack config set system-ghc --global true
- export PATH=/opt/ghc/8.0.1/bin:$PATH
- stack setup
script:
- stack --no-terminal --skip-ghc-check build unison-shared
- stack --no-terminal --skip-ghc-check exec shared-tests
- stack --no-terminal --skip-ghc-check test unison-node
- stack --no-terminal --skip-ghc-check exec node-tests
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.1
- libc6
- libc6-dev
install:
- travis_wait stack --no-terminal --skip-ghc-check setup
- travis_wait stack --no-terminal --skip-ghc-check test --only-snapshot