-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Add full debug builds for all tests #5146
Conversation
In order to ensure the -DEBUG builds don't fail with checked-in code, add two jobs which build even/odd with full debug flags to Travis. Fixes esp8266#5143
b12cf1e
to
aaccfc4
Compare
As CI is "free" for now, no reason not to build everything with debugging enabled. If it becomes an issue, it is not a big change to pick specific tests to compile (but unless needed, I'd rather not try and guess what's needed for good coverage). |
tests/common.sh
Outdated
echo "compiler.c.extra_flags=-Wall -Werror" > esp8266/platform.local.txt | ||
echo "compiler.cpp.extra_flags=-Wall -Werror" >> esp8266/platform.local.txt | ||
echo "compiler.c.extra_flags=-Wall -Werror $debug_flags" > esp8266/platform.local.txt | ||
echo "compiler.cpp.extra_flags=-Wall -Werror $debug_flags" >> esp8266/platform.local.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should -Wextra
have its place here too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. It wasn't in the original "Add all warnings" patch but we can pull it in here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given some of the CI run delays I've seen lately, this makes me cringe a bit, but it's absolutely needed.
In order to ensure the -DEBUG builds don't fail with checked-in code, add
two jobs which build even/odd with full debug flags to Travis.
Fixes #5143