From 5eeced1c545fb2e8b37ffd4279ac80cd08fae230 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Mon, 19 Oct 2020 15:00:42 +0100 Subject: [PATCH] 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). --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9703fc754cd..94999cfbe4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -80,10 +80,10 @@ matrix: - scancode -l --json-pp scancode_new_files.json SCANCODE_NEW_FILES - python ./tools/test/travis-ci/scancode-evaluate.py scancode_new_files.json || true - cat scancode-evaluate.log - - COUNT=$(cat scancode-evaluate.log | grep 'File:' | wc -l) || true + - COUNT=$(cat scancode-evaluate.log | grep 'File:' | grep -v 'SPDX' | wc -l) || true - python ./tools/test/travis-ci/scancode-evaluate.py scancode_new_files.json - cat scancode-evaluate.log - - COUNT_NEW_FILES=$(cat scancode-evaluate.log | grep 'File:' | wc -l) || true + - COUNT_NEW_FILES=$(cat scancode-evaluate.log | grep 'File:' | grep -v 'SPDX' | wc -l) || true - | if [ $COUNT == 0 ] && [ $COUNT_NEW_FILES == 0 ]; then echo "License check OK";