mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12529 from 0xc0170/fix_scancode_ret
travis: scancode ret value not cat fixpull/12463/head
commit
32e8b2f7d4
|
@ -77,13 +77,14 @@ matrix:
|
|||
after_success:
|
||||
- python ./tools/test/travis-ci/scancode-evaluate.py -f scancode.json
|
||||
- cat scancode-evaluate.log
|
||||
- retval=$?
|
||||
- COUNT=$(cat scancode-evaluate.log | grep 'File:' | wc -l)
|
||||
- |
|
||||
if [ $retval == 0 ]; then
|
||||
if [ $COUNT == 0 ]; then
|
||||
echo "License check OK";
|
||||
STATUSM="All licenses OK";
|
||||
set_status "success" "$STATUSM";
|
||||
else
|
||||
echo "License check failed, please review license issues found";
|
||||
COUNT=$(cat scancode-evaluate.log | grep File: | wc -l)
|
||||
STATUSM="Needs review, ${COUNT} license issues found";
|
||||
set_status "success" "$STATUSM";
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue