autotest-checkers.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do
  11. echo "Testing $app"
  12. if
  13. [ "$app" == "dav" ] || \
  14. [ "$app" == "encryption" ] || \
  15. [ "$app" == "federatedfilesharing" ] || \
  16. [ "$app" == "files" ] || \
  17. [ "$app" == "files_external" ] || \
  18. [ "$app" == "files_sharing" ] || \
  19. [ "$app" == "files_trashbin" ] || \
  20. [ "$app" == "files_versions" ] || \
  21. [ "$app" == "lookup_server_connector" ] || \
  22. [ "$app" == "provisioning_api" ] || \
  23. [ "$app" == "testing" ] || \
  24. [ "$app" == "twofactor_backupcodes" ] || \
  25. [ "$app" == "updatenotification" ] || \
  26. [ "$app" == "user_ldap" ]
  27. then
  28. ./occ app:check-code --skip-checkers "$app"
  29. else
  30. ./occ app:check-code "$app"
  31. fi
  32. RESULT=$(($RESULT+$?))
  33. done;
  34. php ./build/files-checker.php
  35. RESULT=$(($RESULT+$?))
  36. exit $RESULT