mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-22 15:58:34 +03:00
5e30293ca1
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).
39 lines
991 B
YAML
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
|