AppVeyor did not find Python subprocess.CalledProcessError as error

kozo.nishida's Avatar

kozo.nishida

29 Jun, 2019 02:15 PM

Do you know why AppVeyor did not find Python subprocess.CalledProcessError as error?

The AppVeyor build
https://ci.appveyor.com/project/ecell/ecell4-base/builds/25519774#L5889

The build configuration in YAML format
https://github.com/ecell/ecell4-base/blob/62070f3371938f917eba38971eca1525a5c8a293/appveyor.yml

  1. 1 Posted by Owen McDonnell on 01 Jul, 2019 06:41 AM

    Owen McDonnell's Avatar

    Powershell leaves it up to you to throw errors...

    Easiest way to fix your config to work as you expect is to put your commands in a ps1 file and put $ErrorActionPreference = "Stop" at the top of that file.

  2. 2 Posted by kozo.nishida on 03 Jul, 2019 06:39 PM

    kozo.nishida's Avatar

    Thank you for your comment.
    Although it is a different way from yours, I found how to write appveyor.yml that can detect error.

    https://github.com/ecell/ecell4_base/blob/0c31312f9ff42ee88c8e7753f286ff67a41ada97/appveyor.yml#L25-L27

    https://ci.appveyor.com/project/ecell/ecell4-base-aj36m/builds/25710156

  3. kozo.nishida closed this discussion on 03 Jul, 2019 06:39 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac