mirror of https://github.com/openXC7/prjxray.git
travis: Convert the checking stuff to scripts.
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
This commit is contained in:
parent
c6a5829d28
commit
072fc6a9d3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue