unison/.travis.yml

39 lines
991 B
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
2018-05-26 00:33:05 +03:00
- $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
2016-05-20 05:15:47 +03:00
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'
script:
- stack --no-terminal build && stack --no-terminal exec tests
2018-05-25 23:34:28 +03:00
- pushd runtime-jvm
- sbt main/test:run
- popd
addons:
apt:
packages:
- libgmp-dev
install:
- stack --no-terminal install-ghc test --only-dependencies