Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to let Appveyor know the build failed from exit code or the build.log #7

Open
GabLeRoux opened this issue Jul 28, 2019 · 0 comments

Comments

@GabLeRoux
Copy link
Member

As shown in the following pipeline:
https://ci.appveyor.com/project/GabLeRoux/unity3d-encrypted-appveyor-poc/builds/26298852

The build failed, but appveyor says it's a success. Here's how I do this with bash:

UNITY_EXIT_CODE=$?

if [ $UNITY_EXIT_CODE -eq 0 ]; then
  echo "Run succeeded, no failures occurred";
elif [ $UNITY_EXIT_CODE -eq 2 ]; then
  echo "Run succeeded, some tests failed";
elif [ $UNITY_EXIT_CODE -eq 3 ]; then
  echo "Run failure (other failure)";
else
  echo "Unexpected exit code $UNITY_EXIT_CODE";
fi

source: https://gitlab.com/gableroux/unity3d-gitlab-ci-example/blob/d40a17e7/ci/build.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant