@@ -39,24 +39,22 @@ before_install:
3939install:
4040 - unset CC
4141 - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
42− - export IS_DARWIN=$([ $(uname) = "Darwin" ]; echo $?)
4342 - ./.travis/install-ghr.sh
4443 - ./.travis/install-stack.sh
4544 - GHC_VERSION=$GHC_VERSION ./.travis/install-ghc.sh
4645
47−
4846# Here starts the actual work to be performed for the package under test;
4947# any command which exits with a non-zero exit code causes the build to fail.
5048script:
5149 - |
5250 # Run tests
53− if [[ $IS_DARWIN ]]; then
51+ if [[ "$(uname)" -ne "Darwin" ]]; then
5452 stack --no-install-ghc --no-terminal test
5553 else
5654 stack --no-install-ghc --system-ghc --no-terminal test
5755 fi
58− - if [[ $IS_DARWIN = 0 ]]; then curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s lint src test examples --cpp-define VERSION_project_m36=HLINT; fi
59− - if [[ $IS_DARWIN = 0 ]]; then stack --no-install-ghc haddock; fi
56+ - if [[ "$(uname)" -ne "Darwin" ]]; then curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s lint src test examples --cpp-define VERSION_project_m36=HLINT; fi
57+ - if [[ "$(uname)" -ne "Darwin" ]]; then stack --no-install-ghc haddock; fi
6058
6159after_success:
6260 - |