2017-04-06 02:42:25 +03:00
|
|
|
# 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
|
2017-04-06 02:42:25 +03:00
|
|
|
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
|
2020-04-21 22:14:47 +03:00
|
|
|
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
2018-05-26 21:58:43 +03:00
|
|
|
|
|
|
|
install:
|
2018-05-27 00:20:06 +03:00
|
|
|
- stack ghc -- --version
|
2019-09-29 21:20:04 +03:00
|
|
|
- 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
|
2019-12-08 23:24:17 +03:00
|
|
|
- git diff
|
|
|
|
- x=`git status --porcelain -uno` bash -c 'if [[ -n $x ]]; then echo "$x" && false; fi'
|