1
0

autotest-checkers.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/env bash
  2. #
  3. RESULT=0
  4. bash ./build/autoloaderchecker.sh
  5. RESULT=$(($RESULT+$?))
  6. php ./build/translation-checker.php
  7. RESULT=$(($RESULT+$?))
  8. php ./build/htaccess-checker.php
  9. RESULT=$(($RESULT+$?))
  10. bash ./build/ca-bundle-checker.sh
  11. RESULT=$(($RESULT+$?))
  12. dataDirCreated=0
  13. if ! [ -e data/ ]; then
  14. dataDirCreated=1
  15. echo "Create directory 'data/'"
  16. mkdir data/
  17. fi
  18. for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
  19. echo "Testing $app"
  20. if
  21. [ "$app" == "dav" ] || \
  22. [ "$app" == "encryption" ] || \
  23. [ "$app" == "federatedfilesharing" ] || \
  24. [ "$app" == "files" ] || \
  25. [ "$app" == "files_external" ] || \
  26. [ "$app" == "files_sharing" ] || \
  27. [ "$app" == "files_trashbin" ] || \
  28. [ "$app" == "files_versions" ] || \
  29. [ "$app" == "provisioning_api" ] || \
  30. [ "$app" == "updatenotification" ] || \
  31. [ "$app" == "user_ldap" ]
  32. then
  33. ./occ app:check-code --skip-checkers "$app"
  34. else
  35. ./occ app:check-code "$app"
  36. fi
  37. RESULT=$(($RESULT+$?))
  38. done;
  39. if [ $dataDirCreated == 1 ]; then
  40. echo "Delete created directory 'data/'"
  41. rm -rf data/
  42. fi
  43. php ./build/files-checker.php
  44. RESULT=$(($RESULT+$?))
  45. exit $RESULT