According to https://www.appveyor.com/docs/build-configuration/#script-blocks-in-build-configuration a build only fails if an exception is thrown. This is causing builds to pass even if the tests fail. That same link suggests adding the code that is in this commit.
- move init and build steps into dedicated scripts - deploy msi artifact on tag