From 9266ed10ae99a902898f5cbdb1a34cf7875ef90b Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Tue, 25 Feb 2020 07:21:08 +0000 Subject: [PATCH] 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. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6394549ea3..1d766bc0de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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