Skip to content

.travis.tml,hack/check_license.sh: add license header checks #381

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

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

AlexNPavel
Copy link
Contributor

Fixes #379

- go test ./test/e2e/...
- go vet ./...
- ./hack/check_license.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should do format check before any tests. In that way, we fail fast on any format issue. maybe move go vet ./... and ./hack/check_license.sh above line 34?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Travis runs every line in the script section, even if one of the early ones fails: https://docs.travis-ci.com/user/customizing-the-build/#customizing-the-build-step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think we should put it in before_script? That way it should fail before doing any of the other tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Travis runs every line in the script section, even if one of the early ones fails: Good find.
I don't really want to add fmt check to before_script script. This might be confusing what needs to be in before_script and in script. I think we should just keep it as it it now util travis add the fail fast feature. travis-ci/travis-ci#1066. Not sure what's going with travis, this feature has been requested for past 5 years. lol.

@fanminshi
Copy link
Contributor

lgtm

@hasbro17
Copy link
Contributor

hasbro17 commented Aug 2, 2018

LGTM

@AlexNPavel AlexNPavel merged commit ff510f4 into operator-framework:master Aug 2, 2018
@AlexNPavel AlexNPavel deleted the ci-license branch August 2, 2018 22:31
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