checks: Ignore src directory. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/.github/travis/check_license.sh b/.github/travis/check_license.sh index 2efc7f3..052fd39 100755 --- a/.github/travis/check_license.sh +++ b/.github/travis/check_license.sh
@@ -18,7 +18,8 @@ FILES_TO_CHECK=`find . \ -type f \( -name '*.sh' -o -name '*.py' -o -name 'Makefile' -o -name '*.v' \) \ \( -not -path "*/.*/*" -not -path "*/third_party/*" -not -path "*/env/*" \) \ - \( -not -path "*/*/__init__.py" -not -path "./miniconda.sh" \)` + \( -not -path "*/src/*" -not -path "*/*/__init__.py" \) \ + \( -not -path "./miniconda.sh" \)` for file in $FILES_TO_CHECK; do echo "Checking $file" @@ -62,4 +63,4 @@ echo "ERROR: $dir does not have the LICENSE file." done return 1 -fi \ No newline at end of file +fi
diff --git a/.github/travis/check_python_script.sh b/.github/travis/check_python_script.sh index 57d792f..d34c586 100644 --- a/.github/travis/check_python_script.sh +++ b/.github/travis/check_python_script.sh
@@ -10,7 +10,9 @@ ERROR_FILES_UTF_CODING="" FILES_TO_CHECK=`find . \ -type f \( -name '*.py' \) \ - \( -not -path "*/.*/*" -not -path "*/third_party/*" -not -path "*/env/*" \)` + \( -not -path "*/.*/*" -not -path "*/third_party/*" -not -path "*/env/*" \) \ + \( -not -path "*/src/*" \) \ + ` for file in $FILES_TO_CHECK; do echo "Checking $file" @@ -32,4 +34,4 @@ return 1 fi -echo \ No newline at end of file +echo