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

Add full debug builds for all tests #5146

Merged
merged 9 commits into from
Sep 21, 2018
Merged

Conversation

earlephilhower
Copy link
Collaborator

@earlephilhower earlephilhower commented Sep 18, 2018

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

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
@earlephilhower
Copy link
Collaborator Author

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).

@earlephilhower earlephilhower changed the title Add full debug builds for all tests WIP - Add full debug builds for all tests Sep 18, 2018
@earlephilhower earlephilhower changed the title WIP - Add full debug builds for all tests Add full debug builds for all tests Sep 18, 2018
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
Copy link
Collaborator

Choose a reason for hiding this comment

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

should -Wextrahave its place here too ?

Copy link
Collaborator Author

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...

Copy link
Collaborator

@devyte devyte left a 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.

@devyte devyte merged commit 0a04ebf into esp8266:master Sep 21, 2018
@earlephilhower earlephilhower deleted the add_debug_ci branch September 21, 2018 17:16
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.

3 participants