Merge pull request #441 from virtualtam/tests/check-file-permissions

tests: add a make target to check file permissions
This commit is contained in:
VirtualTam 2016-01-18 00:29:14 +01:00
commit 25d88c90aa
7 changed files with 16 additions and 1 deletions

View File

@ -11,4 +11,5 @@ install:
- composer install
script:
- make clean
- make check_permissions
- make test

View File

@ -16,7 +16,7 @@ BIN = vendor/bin
PHP_SOURCE = index.php application tests plugins
PHP_COMMA_SOURCE = index.php,application,tests,plugins
all: static_analysis_summary test
all: static_analysis_summary check_permissions test
##
# Concise status of the project
@ -98,6 +98,20 @@ mess_detector_summary: mess_title
printf "$$warnings\t$$rule\n"; \
done;
##
# Checks source file & script permissions
##
check_permissions:
@echo "----------------------"
@echo "Check file permissions"
@echo "----------------------"
@for file in `git ls-files`; do \
if [ -x $$file ]; then \
errors=true; \
echo "$${file} is executable"; \
fi \
done; [ -z $$errors ] || false
##
# PHPUnit
# Runs unitary and functional tests

0
application/HttpUtils.php Executable file → Normal file
View File

0
application/LinkUtils.php Executable file → Normal file
View File

0
application/Url.php Executable file → Normal file
View File

0
plugins/qrcode/qrcode.css Executable file → Normal file
View File

0
tpl/tools.html Executable file → Normal file
View File