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
|
for file in $ERROR_FILES; do
|
||||||
echo "ERROR: $file does not have license information."
|
echo "ERROR: $file does not have license information."
|
||||||
done
|
done
|
||||||
return 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
@ -62,5 +62,5 @@ if [ ! -z "$ERROR_NO_LICENSE" ]; then
|
||||||
for dir in $ERROR_NO_LICENSE; do
|
for dir in $ERROR_NO_LICENSE; do
|
||||||
echo "ERROR: $dir does not have the LICENSE file."
|
echo "ERROR: $dir does not have the LICENSE file."
|
||||||
done
|
done
|
||||||
return 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ if [ ! -z "$ERROR_FILES_SHEBANG" ]; then
|
||||||
for file in $ERROR_FILES_SHEBANG; do
|
for file in $ERROR_FILES_SHEBANG; do
|
||||||
echo "ERROR: $file does not have the python3 shebang."
|
echo "ERROR: $file does not have the python3 shebang."
|
||||||
done
|
done
|
||||||
return 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$ERROR_FILES_UTF_CODING" ]; then
|
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 "ERROR: $file does not have the UTF encoding set."
|
||||||
echo "Add # coding: utf-8"
|
echo "Add # coding: utf-8"
|
||||||
done
|
done
|
||||||
return 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,5 @@ jobs:
|
||||||
|
|
||||||
- name: "License Checks"
|
- name: "License Checks"
|
||||||
script:
|
script:
|
||||||
- source .github/check_license.sh
|
- ./.github/check_license.sh
|
||||||
- source .github/check_python_scripts.sh
|
- ./.github/check_python_scripts.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue