Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail AppVeyor Build if MSI does not build (PowerShell#5755)
Before this PR, when a WiX compilation error occurs then an error is thrown, which appears in the log with details but the AppVeyor build itself is still marked as green. This PR makes the console host also return an exit code of -1 when being run on AppVeyor so that it can then interpret it as a build failure and mark the build as red. It uses the fact that AppVeyor defines an environment variable named CI. Exiting is OK since the MSI build is the last step in CI and nothing happens after that. The git history shows a test build that proves that this works if the installer was broken.
- Loading branch information