Skip to content

Commit 5eeced1

Browse files
0xc0170jeromecoutant
authored andcommitted
travis: ignore spdx reports
Do not force red status for PRs due to SPDX missing (license must be there). We will add better SPDX checks later (more work required to enable these for 3rd party code).
1 parent 7c214cb commit 5eeced1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ matrix:
8080
- scancode -l --json-pp scancode_new_files.json SCANCODE_NEW_FILES
8181
- python ./tools/test/travis-ci/scancode-evaluate.py scancode_new_files.json || true
8282
- cat scancode-evaluate.log
83-
- COUNT=$(cat scancode-evaluate.log | grep 'File:' | wc -l) || true
83+
- COUNT=$(cat scancode-evaluate.log | grep 'File:' | grep -v 'SPDX' | wc -l) || true
8484
- python ./tools/test/travis-ci/scancode-evaluate.py scancode_new_files.json
8585
- cat scancode-evaluate.log
86-
- COUNT_NEW_FILES=$(cat scancode-evaluate.log | grep 'File:' | wc -l) || true
86+
- COUNT_NEW_FILES=$(cat scancode-evaluate.log | grep 'File:' | grep -v 'SPDX' | wc -l) || true
8787
- |
8888
if [ $COUNT == 0 ] && [ $COUNT_NEW_FILES == 0 ]; then
8989
echo "License check OK";

0 commit comments

Comments
 (0)