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

Disallow tabs in Travis CI #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fitzgen
Copy link
Contributor

@fitzgen fitzgen commented Jul 18, 2017

This addresses some concerns raised in #142, but perhaps it also makes sense to expand this beyond creduce.in to the rest of the code base.

This addresses some concerns raised in csmith-project#142, but perhaps it also makes sense to
expand this beyond `creduce.in` to the rest of the code base.
@eeide
Copy link
Member

eeide commented Jul 18, 2017

I don't really want to fail the Travis-CI build due to violated style rules.

In #142 I said that it was the best I knew how to do—but that doesn't mean that I really want to do it.

There must be a better approach to enforcing style rules. Isn't there? We should find it.

@eeide eeide self-assigned this Jul 18, 2017
@fitzgen
Copy link
Contributor Author

fitzgen commented Jul 18, 2017

FWIW, it should still run the make check, but will report the overall run as a failure if there are tabs. I am unsure what your specific concern with running style checks in Travis CI is. The desire to allow style issues to be dealt with later?

@fitzgen
Copy link
Contributor Author

fitzgen commented Jul 18, 2017

Is it because

The closest thing that I know how to do would be to fail the Travis-CI build—which would enforce a kind of "punishment," but doesn't prevent the push from happening.

You can set up the master to disallow direct pushes, and require everything to go through a PR for which CI passes.

Depends on whether you think it the added ceremony pays for itself or not.

@regehr
Copy link
Member

regehr commented Jul 18, 2017

I agree that it would be good to make "make check" fail but not to make the CI fail on this issue.

@eeide
Copy link
Member

eeide commented Jul 18, 2017

Ideally, I would like style issues to be dealt with before the CI build. It seems silly to me for style rules to be enforced so late in the pipeline.

At the same time, I'm not sure how to enforce them both (1) for everybody and (2) earlier. This is worth some investigation, I think, before committing to something (ha ha).

(Surely other GitHub-hosted projects enforce style rules automatically; how do they do it? Do they all do it as you outline, by requiring commits to master to come from pull requests that have been vetted by the CI?)

@regehr
Copy link
Member

regehr commented Jul 18, 2017

I imagine so. I find pull reqs heavyweight for such a small project as this, but could be convinced otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants