on master help sign in
fix broken bash logic for Linux builds
commitddd546b36327513471feea62d8dfa66e2fb0c5a0 authorAgentM <agentm@themactionfaction.com> dateTue 9 Jan 2018, 22:25 (9 years ago) parent36e758a
1 file changed+8−4
.travis.yml+8−4
.travis.yml+8−4
@@ -39,13 +39,17 @@ before_script:
3939script:
4040 - |
4141 # Run tests
42− if [[ "$(uname)" -ne "Darwin" ]]; then
42+ if [[ "$(uname)" = "Linux" ]]; then
4343 stack --no-install-ghc --no-terminal test
44− else
44+ else #Darwin
4545 stack --no-install-ghc --system-ghc --no-terminal test
4646 fi
47− - 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
48− - if [[ "$(uname)" -ne "Darwin" ]]; then stack --no-install-ghc haddock; fi
47+ - if [[ "$(uname)" = "Linux" ]]; then
48+ curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s lint src test examples --cpp-define VERSION_project_m36=HLINT
49+ fi
50+ - if [[ "$(uname)" = "Linux" ]]; then
51+ stack --no-install-ghc haddock
52+ fi
4953
5054after_success:
5155 - |