2017-05-10 14:54:36 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
2017-05-10 15:56:16 +03:00
|
|
|
RESULT=0
|
2017-05-10 14:54:36 +03:00
|
|
|
|
|
|
|
bash ./build/autoloaderchecker.sh
|
2017-05-10 15:56:16 +03:00
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 14:54:36 +03:00
|
|
|
php ./build/translation-checker.php
|
2017-05-10 15:56:16 +03:00
|
|
|
RESULT=$(($RESULT+$?))
|
2020-04-05 14:29:08 +03:00
|
|
|
php ./build/triple-dot-checker.php
|
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 14:54:36 +03:00
|
|
|
php ./build/htaccess-checker.php
|
2017-05-10 15:56:16 +03:00
|
|
|
RESULT=$(($RESULT+$?))
|
2019-02-25 15:49:03 +03:00
|
|
|
bash ./build/ca-bundle-checker.sh
|
|
|
|
RESULT=$(($RESULT+$?))
|
2020-07-14 22:43:19 +03:00
|
|
|
php ./build/OCPSinceChecker.php
|
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 14:54:36 +03:00
|
|
|
|
2019-03-05 13:39:59 +03:00
|
|
|
dataDirCreated=0
|
|
|
|
if ! [ -e data/ ]; then
|
|
|
|
dataDirCreated=1
|
|
|
|
echo "Create directory 'data/'"
|
|
|
|
mkdir data/
|
|
|
|
fi
|
2017-05-17 00:18:02 +03:00
|
|
|
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
|
|
|
|
echo "Testing $app"
|
2017-05-10 14:54:36 +03:00
|
|
|
if
|
|
|
|
[ "$app" == "dav" ] || \
|
|
|
|
[ "$app" == "encryption" ] || \
|
|
|
|
[ "$app" == "federatedfilesharing" ] || \
|
|
|
|
[ "$app" == "files" ] || \
|
|
|
|
[ "$app" == "files_external" ] || \
|
|
|
|
[ "$app" == "files_sharing" ] || \
|
|
|
|
[ "$app" == "files_trashbin" ] || \
|
|
|
|
[ "$app" == "files_versions" ] || \
|
|
|
|
[ "$app" == "provisioning_api" ] || \
|
2019-09-17 17:33:27 +03:00
|
|
|
[ "$app" == "settings" ] || \
|
2017-05-10 14:54:36 +03:00
|
|
|
[ "$app" == "updatenotification" ] || \
|
|
|
|
[ "$app" == "user_ldap" ]
|
|
|
|
then
|
2017-05-11 10:52:55 +03:00
|
|
|
./occ app:check-code --skip-checkers "$app"
|
2017-05-10 14:54:36 +03:00
|
|
|
else
|
|
|
|
./occ app:check-code "$app"
|
|
|
|
fi
|
2017-05-10 15:56:16 +03:00
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 14:54:36 +03:00
|
|
|
done;
|
2019-03-05 13:39:59 +03:00
|
|
|
if [ $dataDirCreated == 1 ]; then
|
|
|
|
echo "Delete created directory 'data/'"
|
|
|
|
rm -rf data/
|
|
|
|
fi
|
2017-05-10 14:54:36 +03:00
|
|
|
|
2017-07-12 12:52:42 +03:00
|
|
|
php ./build/files-checker.php
|
|
|
|
RESULT=$(($RESULT+$?))
|
|
|
|
|
2017-05-10 15:56:16 +03:00
|
|
|
exit $RESULT
|