We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e6603f + 92711bd commit 32e8b2fCopy full SHA for 32e8b2f
.travis.yml
@@ -77,13 +77,14 @@ matrix:
77
after_success:
78
- python ./tools/test/travis-ci/scancode-evaluate.py -f scancode.json
79
- cat scancode-evaluate.log
80
- - retval=$?
+ - COUNT=$(cat scancode-evaluate.log | grep 'File:' | wc -l)
81
- |
82
- if [ $retval == 0 ]; then
+ if [ $COUNT == 0 ]; then
83
echo "License check OK";
84
+ STATUSM="All licenses OK";
85
+ set_status "success" "$STATUSM";
86
else
87
echo "License check failed, please review license issues found";
- COUNT=$(cat scancode-evaluate.log | grep File: | wc -l)
88
STATUSM="Needs review, ${COUNT} license issues found";
89
set_status "success" "$STATUSM";
90
fi
0 commit comments