travis: Convert the checking stuff to scripts.

Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
This commit is contained in:
Tim 'mithro' Ansell 2020-05-26 07:43:07 -07:00
parent c6a5829d28
commit 072fc6a9d3
3 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ if [ ! -z "$ERROR_FILES" ]; then
for file in $ERROR_FILES; do
echo "ERROR: $file does not have license information."
done
return 1
exit 1
fi
echo
@ -62,5 +62,5 @@ if [ ! -z "$ERROR_NO_LICENSE" ]; then
for dir in $ERROR_NO_LICENSE; do
echo "ERROR: $dir does not have the LICENSE file."
done
return 1
exit 1
fi

View File

@ -31,7 +31,7 @@ if [ ! -z "$ERROR_FILES_SHEBANG" ]; then
for file in $ERROR_FILES_SHEBANG; do
echo "ERROR: $file does not have the python3 shebang."
done
return 1
exit 1
fi
if [ ! -z "$ERROR_FILES_UTF_CODING" ]; then
@ -39,7 +39,7 @@ if [ ! -z "$ERROR_FILES_UTF_CODING" ]; then
echo "ERROR: $file does not have the UTF encoding set."
echo "Add # coding: utf-8"
done
return 1
exit 1
fi
echo

View File

@ -35,5 +35,5 @@ jobs:
- name: "License Checks"
script:
- source .github/check_license.sh
- source .github/check_python_scripts.sh
- ./.github/check_license.sh
- ./.github/check_python_scripts.sh