Skip to content

Commit 9266ed1

Browse files
committed
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.
1 parent 1629103 commit 9266ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ matrix:
7070
- >-
7171
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
7272
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true ) \
73-
| ( grep -v '^tools/test/toolchains/api_test.py') \
73+
| ( grep -v '^tools/test/toolchains/api_test.py' || true ) \
7474
| while read file; do cp --parents "${file}" SCANCODE; done
7575
- scancode -l --json-pp scancode.json SCANCODE
7676
- python ./tools/test/travis-ci/scancode-evaluate.py -f scancode.json || true

0 commit comments

Comments
 (0)