Skip to content

Commit

Permalink
return error code
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Apr 25, 2019
1 parent 36f46b8 commit e58cc28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ install:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))
# Setup some environment variable
- ps: $env:Path = "$env:PYTHON;$env:PYTHON\\Scripts;$env:Path"
- ps: Write-Host "Env Path = " + $env:Path
- ps: Write-Output "Env Path = " + $env:Path

- ps: $env:PYTHON_ARCH = python -c "import struct; print(struct.calcsize('P') * 8)"
- ps: $env:PYTHON_VERSION = python -c "import platform;print(platform.python_version())"

# Check that we have the expected version and architecture for Python
- "python --version"
- ps: Write-Host "Python version = " + $env:PYTHON_VERSION
- ps: Write-Host "Python architecture = " + $env:PYTHON_ARCH
- ps: Write-Output "Python version = " + $env:PYTHON_VERSION
- ps: Write-Output "Python architecture = " + $env:PYTHON_ARCH

- "%CMD_IN_ENV% powershell ./ci/appveyor/install.ps1"

build: false # Not a C# project, build stuff at the test step instead.

test_script:
- "%CMD_IN_ENV% powershell ./ci/appveyor/script.ps1"
- '%CMD_IN_ENV% powershell "&{./ci/appveyor/script.ps1 %* ;exit $LastExitCode}" set code=%errorlevel%'

cache:
# Avoid re-downloading large packages. More info: https://www.appveyor.com/docs/build-cache/
Expand Down
17 changes: 5 additions & 12 deletions ci/appveyor/script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@

$env:PIPI = "pip install $env:EXTRA_PIP_FLAGS"
# Print and check this environment variable
Write-Output "Pip command: " + $env:PIPI
Write-Output "Pip command: $env:PIPI"


# Print and Install FURY
Write-Output "Install FURY"
Invoke-Expression "$env:PIPI --user -e ."
Write-Output "======================== Install FURY ========================"
$env:PIPI --user -e .

# Run tests
Write-Output "Run FURY tests"
pytest -svv fury
# try {
# Invoke-Expression "pytest -svv fury"
# } catch {
# Write-Output "Error, Exception "
# Write-Host $_
# exit 1
# }
Write-Output "======================== Run FURY tests ========================"
pytest -svv fury

0 comments on commit e58cc28

Please sign in to comment.