@@ -32,24 +32,31 @@ matrix:
3232 os: osx
3333 compiler: ": #stack 8.0.2"
3434
35+#workaround for broken ruby in travis on mac https://github.com/travis-ci/travis-ci/issues/6307
36+before_install:
37+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rvm get stable; fi
38+
3539install:
3640 - unset CC
3741 - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
42+ - export IS_DARWIN=$([ $(uname) = "Darwin" ]; echo $?)
3843 - ./.travis/install-ghr.sh
3944 - ./.travis/install-stack.sh
4045 - GHC_VERSION=$GHC_VERSION ./.travis/install-ghc.sh
4146
47+
4248# Here starts the actual work to be performed for the package under test;
4349# any command which exits with a non-zero exit code causes the build to fail.
4450script:
4551 - |
4652 # Run tests
47− if [ "$(uname)" = "Darwin" ]; then
53+ if $IS_DARWIN then
4854 stack --no-install-ghc --no-terminal test
4955 else
5056 stack --no-install-ghc --system-ghc --no-terminal test
5157 fi
52−
58+ - $IS_DARWIN || curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s lint src test examples --cpp-define VERSION_project_m36=HLINT
59+ - $IS_DARWIN || stack --no-install-ghc haddock
5360
5461after_success:
5562 - |