autotest-checkers.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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" == "settings" ] || \
  31. [ "$app" == "updatenotification" ] || \
  32. [ "$app" == "user_ldap" ]
  33. then
  34. ./occ app:check-code --skip-checkers "$app"
  35. else
  36. ./occ app:check-code "$app"
  37. fi
  38. RESULT=$(($RESULT+$?))
  39. done;
  40. if [ $dataDirCreated == 1 ]; then
  41. echo "Delete created directory 'data/'"
  42. rm -rf data/
  43. fi
  44. php ./build/files-checker.php
  45. RESULT=$(($RESULT+$?))
  46. exit $RESULT