on master help sign in
fix conditionals- dump IS_DARWIN
68f9cfdAgentM
.travis.yml+3−5
@@ -39,24 +39,22 @@ before_install:
39install:
39install:
40 - unset CC
40 - unset CC
41 - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
41 - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
42− - export IS_DARWIN=$([ $(uname) = "Darwin" ]; echo $?)
43 - ./.travis/install-ghr.sh
42 - ./.travis/install-ghr.sh
44 - ./.travis/install-stack.sh
43 - ./.travis/install-stack.sh
45 - GHC_VERSION=$GHC_VERSION ./.travis/install-ghc.sh
44 - GHC_VERSION=$GHC_VERSION ./.travis/install-ghc.sh
46
45
47−
48# Here starts the actual work to be performed for the package under test;
46# Here starts the actual work to be performed for the package under test;
49# any command which exits with a non-zero exit code causes the build to fail.
47# any command which exits with a non-zero exit code causes the build to fail.
50script:
48script:
51 - |
49 - |
52 # Run tests
50 # Run tests
53− if [[ $IS_DARWIN ]]; then
51+ if [[ "$(uname)" -ne "Darwin" ]]; then
54 stack --no-install-ghc --no-terminal test
52 stack --no-install-ghc --no-terminal test
55 else
53 else
56 stack --no-install-ghc --system-ghc --no-terminal test
54 stack --no-install-ghc --system-ghc --no-terminal test
57 fi
55 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
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
59− - if [[ $IS_DARWIN = 0 ]]; then stack --no-install-ghc haddock; fi
57+ - if [[ "$(uname)" -ne "Darwin" ]]; then stack --no-install-ghc haddock; fi
60
58
61after_success:
59after_success:
62 - |
60 - |