travis: comments #520

This commit is contained in:
Simon Michael 2017-03-21 09:46:01 +00:00
parent 0c7b4e668c
commit 21040780f5

View File

@ -19,19 +19,23 @@ cache:
# - "$HOME/.stack-work/" # - "$HOME/.stack-work/"
before_install: before_install:
# install stack
- mkdir -p ~/.local/bin - mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH - export PATH=~/.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' - travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- chmod a+x ~/.local/bin/stack - chmod a+x ~/.local/bin/stack
- stack --version
install: install:
# install GHC
- stack +RTS -N2 -RTS setup - stack +RTS -N2 -RTS setup
# install deps
- stack +RTS -N2 -RTS build --only-snapshot - stack +RTS -N2 -RTS build --only-snapshot
script: script:
- git --version # build all packages, ensuring no warnings, no haddock failures, per-package test suites passing
- stack --version - stack +RTS -N2 -RTS build --ghc-options=-Werror --haddock --no-haddock-deps --test
- stack +RTS -N2 -RTS build --test --haddock --no-haddock-deps --ghc-options=-Werror # run functional tests
- COLUMNS=80 stack exec -- shelltest --execdir -- -j16 tests - COLUMNS=80 stack exec -- shelltest --execdir -- -j16 tests
# coveralls.io coverage reports # coveralls.io coverage reports