2017-05-10 11:54:36 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
2017-05-10 12:56:16 +00:00
|
|
|
RESULT=0
|
2017-05-10 11:54:36 +00:00
|
|
|
|
|
|
|
bash ./build/autoloaderchecker.sh
|
2017-05-10 12:56:16 +00:00
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 11:54:36 +00:00
|
|
|
php ./build/translation-checker.php
|
2017-05-10 12:56:16 +00:00
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 11:54:36 +00:00
|
|
|
php ./build/htaccess-checker.php
|
2017-05-10 12:56:16 +00:00
|
|
|
RESULT=$(($RESULT+$?))
|
2019-02-25 12:49:03 +00:00
|
|
|
bash ./build/ca-bundle-checker.sh
|
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 11:54:36 +00:00
|
|
|
|
2019-03-05 10:39:59 +00:00
|
|
|
dataDirCreated=0
|
|
|
|
if ! [ -e data/ ]; then
|
|
|
|
dataDirCreated=1
|
|
|
|
echo "Create directory 'data/'"
|
|
|
|
mkdir data/
|
|
|
|
fi
|
2017-05-16 21:18:02 +00:00
|
|
|
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
|
|
|
|
echo "Testing $app"
|
2017-05-10 11:54:36 +00: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" ] || \
|
|
|
|
[ "$app" == "updatenotification" ] || \
|
|
|
|
[ "$app" == "user_ldap" ]
|
|
|
|
then
|
2017-05-11 07:52:55 +00:00
|
|
|
./occ app:check-code --skip-checkers "$app"
|
2017-05-10 11:54:36 +00:00
|
|
|
else
|
|
|
|
./occ app:check-code "$app"
|
|
|
|
fi
|
2017-05-10 12:56:16 +00:00
|
|
|
RESULT=$(($RESULT+$?))
|
2017-05-10 11:54:36 +00:00
|
|
|
done;
|
2019-03-05 10:39:59 +00:00
|
|
|
if [ $dataDirCreated == 1 ]; then
|
|
|
|
echo "Delete created directory 'data/'"
|
|
|
|
rm -rf data/
|
|
|
|
fi
|
2017-05-10 11:54:36 +00:00
|
|
|
|
2017-07-12 09:52:42 +00:00
|
|
|
php ./build/files-checker.php
|
|
|
|
RESULT=$(($RESULT+$?))
|
|
|
|
|
2017-05-10 12:56:16 +00:00
|
|
|
exit $RESULT
|