Skip to content

Updated build script to fail upon compilation error and report status of all files #85

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

Merged
merged 2 commits into from
Nov 21, 2017

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants