Skip to content

Commit 3c441eb

Browse files
committed
travis: scancode check log instead
Fix to properly evaluate the findings - read the logs to get how many files there are reported.
1 parent 2d93a45 commit 3c441eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,12 @@ matrix:
7777
after_success:
7878
- python ./tools/test/travis-ci/scancode-evaluate.py -f scancode.json
7979
- cat scancode-evaluate.log
80-
- retval=$?
80+
- COUNT=$(cat scancode-evaluate.log | grep 'File:' | wc -l)
8181
- |
82-
if [ $retval == 0 ]; then
82+
if [ $COUNT == 0 ]; then
8383
echo "License check OK";
8484
else
8585
echo "License check failed, please review license issues found";
86-
COUNT=$(cat scancode-evaluate.log | grep File: | wc -l)
8786
STATUSM="Needs review, ${COUNT} license issues found";
8887
set_status "success" "$STATUSM";
8988
fi

0 commit comments

Comments
 (0)