unison/.travis.yml

38 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
2018-05-26 00:33:05 +03:00
- $HOME/.ivy2/cache
- $HOME/.sbt
2018-05-27 00:47:30 +03:00
- $HOME/.coursier
2018-05-26 00:33:05 +03:00
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -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'
# Download paulp/sbt-extras because Travis CI's copy is 3 years old as of this writing
- curl -Ls https://git.io/sbt > ~/.local/bin/sbt && chmod 0755 ~/.local/bin/sbt
install:
- stack ghc -- --version
- travis_wait stack --no-terminal setup
- travis_wait stack --no-terminal test --only-snapshot
- travis_wait stack --no-terminal build
2016-05-20 05:15:47 +03:00
script:
- stack --no-terminal exec tests
2018-07-22 22:21:36 +03:00
- (cd runtime-jvm; sbt benchmark/compile test)