unison/.travis.yml

29 lines
851 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
2019-02-13 22:55:59 +03:00
dist: trusty
2016-05-20 05:15:47 +03:00
sudo: false
language: generic
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
before_cache:
2019-03-07 00:31:31 +03:00
# Do any cleanup here to avoid caching junk.
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
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
install:
- stack ghc -- --version
- stack --no-terminal build
2019-11-20 20:51:44 +03:00
- stack --no-terminal exec tests
- stack --no-terminal exec transcripts
2019-11-21 23:15:57 +03:00
# fail if running transcripts modified any versioned files
- git diff
- x=`git status --porcelain -uno` bash -c 'if [[ -n $x ]]; then echo "$x" && false; fi'