unison/.travis.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

# https://docs.haskellstack.org/en/stable/travis_ci/
2016-12-27 21:17:46 +03:00
# run on containerized infrastructure hopefully
2017-04-06 03:04:53 +03:00
dist: trusty
2016-05-20 05:15:47 +03:00
sudo: false
language: generic
2016-05-20 05:15:47 +03:00
2017-04-06 03:04:53 +03:00
2016-05-20 05:15:47 +03:00
# 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
2016-12-27 21:17:46 +03:00
- export PATH=$HOME/.local/bin:$PATH
2016-05-20 05:15:47 +03:00
- 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
2016-12-13 20:40:29 +03:00
- stack setup
2016-05-20 05:15:47 +03:00
script:
2017-01-03 21:30:53 +03:00
- stack --no-terminal --skip-ghc-check build unison-shared
- stack --no-terminal --skip-ghc-check exec shared-tests
2016-07-12 20:57:02 +03:00
- stack --no-terminal --skip-ghc-check test unison-node
2017-01-03 21:30:53 +03:00
- stack --no-terminal --skip-ghc-check exec node-tests
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-8.0.1
2017-04-06 02:47:49 +03:00
- libc6
- libc6-dev
install:
- travis_wait stack --no-terminal --skip-ghc-check setup
- travis_wait stack --no-terminal --skip-ghc-check test --only-snapshot