Run code formatting checks on travis #163
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
Epic
good first issue
hacktoberfest
hard fork
help wanted
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
soft fork
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
work in progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbrycrd#163
Loading…
Reference in a new issue
No description provided.
Delete branch "rep_build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added an option on reproducible_build.sh to run a code formatting check on any commits not on master (by default this option is off). Travis will use this option and build will fail if it finds any lines that needs to be formatted.
For https://github.com/lbryio/lbrycrd/issues/157
👍 this is the only way to enforce code styles, imho
Brought in the latest .clang-format and developer docs from Bitcoin Core. We should follow these from now on.
reproducible_build.sh has a new option flag -f that will run a code formatting check on any commit not on master using .clang-format before building. On travis, the build will fail if there are any code formatting issues on your commits.
If you want to run just the code formatting check script, I added a line in README on how to do that.
Added some comments on README about dealing with changes that we bring in from Bitcoin Core that is not expected to be used when we do a full merge from upstream (i.e. updating to the lastet Core version). Note that e9369eb is one of those commits.
I don't think this will do what you expect it to do.
Try:
@kaykurokawa This looks good to me (although what happens if the style fails -- just a travis failure?). If you want to merge and create the release including the OS X build, maybe this is a good spot to do it.
Yes if the style fails for the commits, travis will refuse to build