Rerun Windows tests just like linux tests (#846)

This commit is contained in:
Pepe Iborra 2020-10-04 14:42:00 +01:00 committed by GitHub
parent c928569aac
commit 62f198d618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,8 +55,8 @@ jobs:
displayName: 'stack build --only-dependencies'
- bash: |
if [ "$STACK_YAML" = "stack8101.yaml" ]; then
stack test --ghc-options="-Werror -fexternal-interpreter" --stack-yaml $STACK_YAML
stack test --ghc-options="-Werror -fexternal-interpreter" --stack-yaml $STACK_YAML || stack test --ghc-options="-Werror -fexternal-interpreter" --stack-yaml=$STACK_YAML --ta "--rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true stack test --ghc-options="-Werror -fexternal-interpreter" --stack-yaml=$STACK_YAML --ta "--rerun"
else
stack test --ghc-options=-Werror --stack-yaml $STACK_YAML
stack test --ghc-options=-Werror --stack-yaml $STACK_YAML || stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML --ta "--rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML --ta "--rerun"
fi
displayName: 'stack test --ghc-options=-Werror'