Skip to content
Permalink
Browse files

[appveyor] Check $LastExitCode

otherwise the job succeeds even when tests fail
  • Loading branch information...
miguelsousa committed Aug 26, 2019
1 parent feda732 commit ac832c45b91a0296a7d0e0e706b2c9f11c757f5e
Showing with 4 additions and 0 deletions.
  1. +4 −0 .appveyor.yml
@@ -31,9 +31,13 @@ test_script:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -ne "true") {
$WHEEL = Resolve-Path "dist\*.whl" | Select -ExpandProperty Path
if ($WHEEL -eq $null) { echo "ERROR: Wheel file not found."; exit 1 }
python -m pip install $WHEEL
if ($LastExitCode -ne 0) { exit $LastExitCode }
python -m pytest
if ($LastExitCode -ne 0) { exit $LastExitCode }
python -m pip uninstall --yes afdko
if ($LastExitCode -ne 0) { exit $LastExitCode }
}
artifacts:

0 comments on commit ac832c4

Please sign in to comment.
You can’t perform that action at this time.