Skip to content

Commit

Permalink
[appveyor] Check $LastExitCode
Browse files Browse the repository at this point in the history
otherwise the job succeeds even when tests fail
  • Loading branch information
miguelsousa committed Aug 26, 2019
1 parent feda732 commit ac832c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .appveyor.yml
Expand Up @@ -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:
Expand Down

0 comments on commit ac832c4

Please sign in to comment.