travis: ignore grep return value for scancode

The file is not always present in changed files, thus we need to just ignore the
return status.
pull/12505/head
Martin Kojtal 2020-02-25 07:21:08 +00:00
parent 1629103fb1
commit 9266ed10ae
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ matrix:
- >-
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true ) \
| ( grep -v '^tools/test/toolchains/api_test.py') \
| ( grep -v '^tools/test/toolchains/api_test.py' || true ) \
| while read file; do cp --parents "${file}" SCANCODE; done
- scancode -l --json-pp scancode.json SCANCODE
- python ./tools/test/travis-ci/scancode-evaluate.py -f scancode.json || true