2017-11-08 23:05:28 +03:00
|
|
|
sudo: false
|
2019-02-21 03:16:34 +03:00
|
|
|
language: minimal
|
|
|
|
git:
|
|
|
|
submodules: false # whether to recursively clone submodules
|
2017-11-08 23:05:28 +03:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2019-02-21 03:16:34 +03:00
|
|
|
- $HOME/.stack
|
2017-11-08 23:05:28 +03:00
|
|
|
|
2019-03-23 08:34:22 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- env: STACK_YAML=stack-8.4.yaml
|
|
|
|
- env: STACK_YAML=stack-8.6.yaml
|
|
|
|
|
2017-11-08 23:05:28 +03:00
|
|
|
before_install:
|
2019-03-23 08:34:22 +03:00
|
|
|
# Changes ssh paths into http path, so that we can do a read-only clone of
|
|
|
|
# our submodules without worrying about ssh keys.
|
|
|
|
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
|
|
|
|
- git submodule update --init
|
2019-02-21 03:16:34 +03:00
|
|
|
|
2019-03-23 08:34:22 +03:00
|
|
|
# Download and unpack the stack executable
|
|
|
|
- mkdir -p $HOME/.local/bin
|
|
|
|
- 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'
|
2019-02-21 03:16:34 +03:00
|
|
|
|
2017-11-08 23:05:28 +03:00
|
|
|
install:
|
2019-03-23 08:34:22 +03:00
|
|
|
- travis_wait stack --no-terminal setup
|
2017-11-08 23:05:28 +03:00
|
|
|
|
|
|
|
# Here starts the actual work to be performed for the package under test;
|
|
|
|
# any command which exits with a non-zero exit code causes the build to fail.
|
|
|
|
script:
|
2019-03-26 05:49:49 +03:00
|
|
|
# Build packages
|
2019-03-25 23:20:51 +03:00
|
|
|
- stack build --ghc-options="-Wall -Werror"
|
2019-03-26 05:49:49 +03:00
|
|
|
# Run tests
|
2019-03-26 05:31:04 +03:00
|
|
|
- stack test macaw-x86 macaw-x86-symbolic --ghc-options="-Wall -Werror"
|