Skip to content

Commit 50a99a0

Browse files
Cruz Monrreal IICruz Monrreal II
Cruz Monrreal II
authored and
Cruz Monrreal II
committed
Updated license_check to work a bit better across line boundries.
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.
1 parent 31ab61e commit 50a99a0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,9 @@ matrix:
302302
- env:
303303
- NAME=licence_check
304304
script:
305-
- echo 'Checking that there is no GPL licence text in code'
306305
- |
307-
! git grep -q --ignore-case "gnu general public";
308-
- |
309-
! git grep -q --ignore-case "gnu library general public";
306+
! grep --recursive --max-count=100 --ignore-case --exclude .travis.yml \
307+
"gnu general\|gnu lesser\|lesser general\|public license"
310308
311309
- env:
312310
- NAME=include_check

0 commit comments

Comments
 (0)