Skip to content

Travis CI: Fix for license check job #9492

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 3 commits into from
Jan 25, 2019

Conversation

cmonr
Copy link
Contributor

@cmonr cmonr commented Jan 24, 2019

Description

It would seem that having a '!' before a single command in a single line parses out the '!'.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@cmonr
Copy link
Contributor Author

cmonr commented Jan 24, 2019

Will need a rebase once #9488 is in.

@cmonr
Copy link
Contributor Author

cmonr commented Jan 24, 2019

Aaand found the crux of the problem.

Starting a line with ! is slurped up as YAML syntax:
https://en.wikipedia.org/wiki/YAML#Advanced_components

Local data types use a single exclamation mark (!).

Oh well. Good to know for the future.

cmonr and others added 2 commits January 24, 2019 16:14
Somehow, having the '!' before a single command in a single line parses out the '!'.
Swapped out 'git grep' for 'grep' since it can take in a --max-count flag.
The license _header_ will always be at the top.

Also enabled output so that PR authors can know what the problem files are.
@cmonr cmonr force-pushed the travisCI-fix-license_check branch 2 times, most recently from 5cee9bd to e28bf5a Compare January 25, 2019 06:33
@cmonr
Copy link
Contributor Author

cmonr commented Jan 25, 2019

Needed to be sure because everything was green.

Did a revert of 32e247d, and pushed to test.

Properly failing build: https://travis-ci.org/ARMmbed/mbed-os/jobs/484229340

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 25, 2019

@ARMmbed/mbed-os-test Please review

@OPpuolitaival
Copy link
Contributor

Looks good!

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 25, 2019

CI started

@0xc0170 0xc0170 merged commit daefce6 into ARMmbed:master Jan 25, 2019
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.

4 participants