diff options
author | Joas Schilling <coding@schilljs.com> | 2017-05-10 14:54:36 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-05-16 17:16:55 +0300 |
commit | 3571355eb579e0a7a027ef9bcb83a2c24f1751aa (patch) | |
tree | d545bc25c1184ad36617b42c88ac227a421564e0 | |
parent | 1951c88bdcc201078968613743229e4d97204855 (diff) |
Run the app checker on all apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | .drone.yml | 13 | ||||
-rwxr-xr-x | autotest-checkers.sh | 34 |
2 files changed, 35 insertions, 12 deletions
diff --git a/.drone.yml b/.drone.yml index 2080de5a123..90ac6e4e417 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,18 +15,7 @@ pipeline: checkers: image: nextcloudci/php7.0:php7.0-7 commands: - - bash ./build/autoloaderchecker.sh - - bash ./build/mergejschecker.sh - - php ./build/translation-checker.php - - php ./build/htaccess-checker.php - - ./occ app:check-code admin_audit - - ./occ app:check-code comments - - ./occ app:check-code federation - - ./occ app:check-code sharebymail - - ./occ app:check-code systemtags - - ./occ app:check-code theming - - ./occ app:check-code workflowengine - - php ./build/signed-off-checker.php + - ./autotest-checkers.sh when: matrix: TESTS: checkers diff --git a/autotest-checkers.sh b/autotest-checkers.sh new file mode 100755 index 00000000000..ff89eba2b5e --- /dev/null +++ b/autotest-checkers.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# + +bash ./build/autoloaderchecker.sh +bash ./build/mergejschecker.sh +php ./build/translation-checker.php +php ./build/htaccess-checker.php + + +for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do + if + [ "$app" == "dav" ] || \ + [ "$app" == "encryption" ] || \ + [ "$app" == "federatedfilesharing" ] || \ + [ "$app" == "files" ] || \ + [ "$app" == "files_external" ] || \ + [ "$app" == "files_sharing" ] || \ + [ "$app" == "files_trashbin" ] || \ + [ "$app" == "files_versions" ] || \ + [ "$app" == "lookup_server_connector" ] || \ + [ "$app" == "provisioning_api" ] || \ + [ "$app" == "testing" ] || \ + [ "$app" == "twofactor_backupcodes" ] || \ + [ "$app" == "updatenotification" ] || \ + [ "$app" == "user_ldap" ] + then + ./occ app:check-code -c strong-comparison "$app" + else + ./occ app:check-code "$app" + fi + RESULT=$? +done; + +php ./build/signed-off-checker.php |