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

Check code style during Travis CI build #100

Merged
merged 2 commits into from Sep 9, 2018
Merged

Check code style during Travis CI build #100

merged 2 commits into from Sep 9, 2018

Conversation

niklas88
Copy link
Member

@niklas88 niklas88 commented Aug 15, 2018

The first commit just adds the check without formatting so it breaks the build as intended

@niklas88 niklas88 added this to Review in QLever Aug 31, 2018
@niklas88 niklas88 moved this from Review to In progress in QLever Aug 31, 2018
@niklas88 niklas88 moved this from In progress to Review in QLever Aug 31, 2018
@niklas88 niklas88 moved this from Review to Reviewer approved in QLever Aug 31, 2018
@niklas88 niklas88 moved this from Reviewer approved to Waiting on merge decision in QLever Aug 31, 2018
@niklas88 niklas88 moved this from Approved waiting on decision/external to Review Approved in QLever Aug 31, 2018
@niklas88 niklas88 moved this from Review Approved to Approved waiting on decision/external in QLever Aug 31, 2018
@niklas88
Copy link
Member Author

niklas88 commented Sep 4, 2018

@floriankramer maybe we could combine this with doing just a docker build on Travis CI as suggested in #122. Then we could settle on using the clang-format in the same Ubuntu version as used by the docker images and I could simply do my formatting with a container.

@niklas88 niklas88 moved this from Merge stalled to In progress in QLever Sep 7, 2018
QLever automation moved this from In progress to Review Approved Sep 8, 2018
Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

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

LGTM
I think this will at first annoy and then really help us:)

printf "Use clang-format with the .clang-format provided in the QLever\n"
printf "repository's root to ensure all code files are formatted "
printf "properly.\n"
printf "\x1b[m"
Copy link
Member

Choose a reason for hiding this comment

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

Since this was an issue as far as I remember it would be nice to tell which clang-format version must be used. (at least "must match the ones from the ubuntu18.04 repo" although explicit x.y.z would of course be nicer.

@niklas88 niklas88 merged commit 4334f51 into ad-freiburg:master Sep 9, 2018
QLever automation moved this from Review Approved to Done Sep 9, 2018
@niklas88 niklas88 deleted the travis-clang-format branch October 31, 2018 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
QLever
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants