83 lines
3.7 KiB
YAML
83 lines
3.7 KiB
YAML
# ~*~ auto-generated by haskell-ci with config : c5de1915986b17c62e2a4cbe1fb7b3d47a6b1dc45a8f4d4fa78654695dfd1f43 ~*~
|
|
|
|
# Use new container infrastructure to enable caching
|
|
sudo: false
|
|
|
|
# Caching so the next build will be fast too.
|
|
cache:
|
|
directories:
|
|
- $HOME/.ghc
|
|
- $HOME/.stack
|
|
- $HOME/.local
|
|
|
|
matrix:
|
|
include:
|
|
- { env: BUILD=stack RESOLVER=ghc-8.2, compiler: ghc-8.2, language: generic, addons: { apt: { packages: [ libgmp-dev ] } } }
|
|
- { env: BUILD=stack RESOLVER=ghc-8.0, compiler: ghc-8.0, language: generic, addons: { apt: { packages: [ libgmp-dev ] } } }
|
|
- { env: BUILD=stack RESOLVER=ghc-8.0, compiler: ghc-8.0, language: generic, addons: { apt: { packages: [ libgmp-dev ] } }, os: osx }
|
|
- { env: BUILD=stack RESOLVER=ghc-8.4, compiler: ghc-8.4, language: generic, addons: { apt: { packages: [ libgmp-dev ] } } }
|
|
- { env: BUILD=stack RESOLVER=ghc-8.6, compiler: ghc-8.6, language: generic, addons: { apt: { packages: [ libgmp-dev ] } } }
|
|
- { env: BUILD=hlint, compiler: hlint, language: generic }
|
|
- { env: BUILD=weeder, compiler: weeder, language: generic, addons: { apt: { packages: [ libgmp-dev ] } } }
|
|
allow_failures:
|
|
- { env: BUILD=hlint, compiler: hlint, language: generic }
|
|
- { env: BUILD=weeder, compiler: weeder, language: generic, addons: { apt: { packages: [ libgmp-dev ] } } }
|
|
|
|
install:
|
|
- export PATH=$HOME/.local/bin::$HOME/.cabal/bin:$PATH
|
|
- mkdir -p ~/.local/bin
|
|
- |
|
|
case "$BUILD" in
|
|
stack|weeder)
|
|
if [ `uname` = "Darwin" ]
|
|
then
|
|
travis_retry curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
|
|
else
|
|
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
|
fi
|
|
;;
|
|
cabal)
|
|
;;
|
|
esac
|
|
|
|
script:
|
|
- |
|
|
set -ex
|
|
if [ "x${RUNTEST}" = "xfalse" ]; then exit 0; fi
|
|
case "$BUILD" in
|
|
stack)
|
|
# create the build stack.yaml
|
|
case "$RESOLVER" in
|
|
ghc-8.2)
|
|
echo "{ resolver: lts-11.22, packages: [ '.' ], extra-deps: [], flags: {} }" > stack.yaml
|
|
stack --no-terminal build --install-ghc --coverage --test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
|
;;
|
|
ghc-8.0)
|
|
echo "{ resolver: lts-9.21, packages: [ '.' ], extra-deps: [ basement-0.0.6, foundation-0.0.19, memory-0.14.14, gauge-0.2.1 ], flags: {} }" > stack.yaml
|
|
stack --no-terminal build --install-ghc --coverage --test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
|
;;
|
|
ghc-8.0)
|
|
echo "{ resolver: lts-9.21, packages: [ '.' ], extra-deps: [ basement-0.0.6, foundation-0.0.19, memory-0.14.14, gauge-0.2.1 ], flags: {} }" > stack.yaml
|
|
stack --no-terminal build --install-ghc --coverage --test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
|
;;
|
|
ghc-8.4)
|
|
echo "{ resolver: lts-12.15, packages: [ '.' ], extra-deps: [], flags: {} }" > stack.yaml
|
|
stack --no-terminal build --install-ghc --coverage --test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
|
;;
|
|
ghc-8.6)
|
|
echo "{ resolver: nightly-2018-10-21, packages: [ '.' ], extra-deps: [], flags: {} }" > stack.yaml
|
|
stack --no-terminal build --install-ghc --coverage --test --bench --no-run-benchmarks --haddock --no-haddock-deps
|
|
;;
|
|
esac
|
|
;;
|
|
hlint)
|
|
curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s . --cpp-define=__GLASGOW_HASKELL__=800 --cpp-define=x86_64_HOST_ARCH=1 --cpp-define=mingw32_HOST_OS=1
|
|
;;
|
|
weeder)
|
|
stack --no-terminal build --install-ghc
|
|
curl -sL https://raw.github.com/ndmitchell/weeder/master/misc/travis.sh | sh -s .
|
|
;;
|
|
esac
|
|
set +ex
|
|
|