@@ -23,16 +23,11 @@ matrix:
2323 compiler: ": #stack 8.0.2"
2424 addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
2525
26− - env: CACHE_NAME=osx-7.10.3 STACK_YAML=stack.ghc7.10.yaml
27− os: osx
28− osx_image: xcode6.4
29− compiler: ": #stack 7.10.3"
30−
3126 - env: CACHE_NAME=osx-8.0.2 STACK_YAML=stack.yaml
3227 os: osx
3328 compiler: ": #stack 8.0.2"
3429
35−install:
30+before_script:
3631 - unset CC
3732 - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
3833 - ./.travis/install-ghr.sh
@@ -44,12 +39,21 @@ install:
4439script:
4540 - |
4641 # Run tests
47− if [ "$(uname)" = "Darwin" ]; then
48− stack --no-install-ghc --no-terminal test
49− else
42+ if [[ "$(uname)" = "Linux" ]]; then
43+ stack --no-install-ghc --no-terminal --system-ghc test
44+ else #Darwin
5045 stack --no-install-ghc --system-ghc --no-terminal test
5146 fi
52−
47+ - |
48+ #Run HLint
49+ if [[ "$(uname)" = "Linux" ]]; then
50+ curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s lint src test examples --cpp-define VERSION_project_m36=HLINT
51+ fi
52+ - |
53+ #Run Haddock
54+ if [[ "$(uname)" = "Linux" ]]; then
55+ stack --no-install-ghc --system-ghc --no-haddock-deps haddock
56+ fi
5357
5458after_success:
5559 - |