autotest-checkers.sh 1.2 KB

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