1
0

autotest-checkers.sh 1.2 KB

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