diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-01-18 00:29:14 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2016-01-18 00:29:14 +0100 |
commit | 25d88c90aa74ea05162dfc59f47843df639beb75 (patch) | |
tree | 241760c0ca774d961303c78f116cc71e4b305d21 /Makefile | |
parent | dc7db03feb92904fe1bed087cdf01c75edf0f68f (diff) | |
parent | fc17813bd1888aeace1e74a15c10ba79043a87f8 (diff) | |
download | Shaarli-25d88c90aa74ea05162dfc59f47843df639beb75.tar.gz Shaarli-25d88c90aa74ea05162dfc59f47843df639beb75.tar.zst Shaarli-25d88c90aa74ea05162dfc59f47843df639beb75.zip |
Merge pull request #441 from virtualtam/tests/check-file-permissions
tests: add a make target to check file permissions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -16,7 +16,7 @@ BIN = vendor/bin | |||
16 | PHP_SOURCE = index.php application tests plugins | 16 | PHP_SOURCE = index.php application tests plugins |
17 | PHP_COMMA_SOURCE = index.php,application,tests,plugins | 17 | PHP_COMMA_SOURCE = index.php,application,tests,plugins |
18 | 18 | ||
19 | all: static_analysis_summary test | 19 | all: static_analysis_summary check_permissions test |
20 | 20 | ||
21 | ## | 21 | ## |
22 | # Concise status of the project | 22 | # Concise status of the project |
@@ -99,6 +99,20 @@ mess_detector_summary: mess_title | |||
99 | done; | 99 | done; |
100 | 100 | ||
101 | ## | 101 | ## |
102 | # Checks source file & script permissions | ||
103 | ## | ||
104 | check_permissions: | ||
105 | @echo "----------------------" | ||
106 | @echo "Check file permissions" | ||
107 | @echo "----------------------" | ||
108 | @for file in `git ls-files`; do \ | ||
109 | if [ -x $$file ]; then \ | ||
110 | errors=true; \ | ||
111 | echo "$${file} is executable"; \ | ||
112 | fi \ | ||
113 | done; [ -z $$errors ] || false | ||
114 | |||
115 | ## | ||
102 | # PHPUnit | 116 | # PHPUnit |
103 | # Runs unitary and functional tests | 117 | # Runs unitary and functional tests |
104 | # Generates an HTML coverage report if Xdebug is enabled | 118 | # Generates an HTML coverage report if Xdebug is enabled |