-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check language files and database schema with app code checker #4767
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4767 +/- ##
============================================
- Coverage 54.17% 54.12% -0.05%
- Complexity 22174 22201 +27
============================================
Files 1365 1367 +2
Lines 84886 84959 +73
Branches 1322 1322
============================================
- Hits 45985 45983 -2
- Misses 38901 38976 +75
|
f2e2a80
to
962a51f
Compare
autotest-checkers.sh
Outdated
else | ||
./occ app:check-code "$app" | ||
fi | ||
RESULT=$? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this exits correctly, I guess we need to merge the result codes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will just take the last code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RESULT=$((
Just do that below each one... and return that at the end ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks
.drone.yml
Outdated
- ./occ app:check-code systemtags | ||
- ./occ app:check-code theming | ||
- ./occ app:check-code workflowengine | ||
- ./autotest-checkers.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why a single job?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was before, but now devs can run this job in a simple fashion aswell
autotest-checkers.sh
Outdated
else | ||
./occ app:check-code "$app" | ||
fi | ||
RESULT=$? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RESULT=$((
Just do that below each one... and return that at the end ;)
dd86638
to
d275a21
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
39fc4f2
to
f920dfe
Compare
Rebased and ready to review |
else | ||
./occ app:check-code "$app" | ||
fi | ||
RESULT=$(($RESULT+$?)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not really helpful, because the log doesn't show what is the cause for the failure 🙈
The file runs fine locally. :/ |
@@ -70,6 +72,12 @@ protected function configure() { | |||
[ 'private', 'deprecation', 'strong-comparison' ] | |||
) | |||
->addOption( | |||
'--skip-checkers', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice that you added this, but it isn't evaluated in the code below 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed this.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
RESULT=$(($RESULT+$?)) | ||
|
||
|
||
for app in $(find "apps/" -mindepth 1 -maxdepth 1 -type d -exec basename {} \;); do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I made this compatible with the UNIX find (the previous was only for GNU find which didn't worked on UNIX)
This broke the updater… The release script has to remove that file from the built… I will adjust but all users on existing betas will have to manually delete this file… |
Sorry :/ awkward |
Brings #4485 to apps