Skip to content

Conversation

codecae
Copy link
Member

@codecae codecae commented Nov 16, 2017

Current script will report build failures but exits 0 in CI when failures exist. This update will provide all file compilation statuses and exit on failure if one of them has a build issue.

@codecae codecae requested a review from mikeller November 16, 2017 16:11
bin/build.sh Outdated
if [[ $FAIL -eq 0 ]]; then
echo -e "\e[1m\e[39m[\e[32mTEST SUCCESSFUL\e[39m]\e[21m All lua files built successfully!"
fi
exit $FAIL
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exiting with a status that is a logical or of all exit codes is a bit awkward, and makes it impossible to do something meaningful with the exit status. We should probably rather exit with the last failed compilation exit status.

@codecae codecae force-pushed the build_script_parse_fix branch 4 times, most recently from 6e4e45a to 467ac1f Compare November 19, 2017 04:30
@codecae codecae force-pushed the build_script_parse_fix branch from 467ac1f to d74fa4c Compare November 20, 2017 15:21
@codecae
Copy link
Member Author

codecae commented Nov 20, 2017

These changes looking any better?

@mikeller
Copy link
Member

@codecae: Much better. :-)

@mikeller mikeller merged commit 6c3ded4 into betaflight:master Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants