Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
654ee531
Verified
Commit
654ee531
authored
8 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
feat: switch to php-parallel-lint for linting
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
737097f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/tests/lint.yml
+9
-10
9 additions, 10 deletions
includes/tests/lint.yml
with
9 additions
and
10 deletions
includes/tests/lint.yml
+
9
−
10
View file @
654ee531
...
...
@@ -6,17 +6,16 @@
-
composer config gitlab-token.gitlab.wpdesk.dev gitlab-ci-token ${CI_JOB_TOKEN}
-
composer install --no-dev
-
rm auth.json
-
phive install -g https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/download/v1.4.0/parallel-lint.phar --force-accept-unsigned
script
:
-
|
set -x; \
LINT="$(find . -name '*.php' -print0 |xargs -n1 -0 -P16 php -l 2>&1)"; \
RESULT="$?"; \
if [[ "$RESULT" -ne 0 ]]; then
echo -e "$LINT" | grep -v 'No syntax errors';
exit 0;
else
exit "$RESULT"
fi
-
parallel-lint . --gitlab > lint-codequality.json ||
true
-
parallel-lint .
artifacts
:
paths
:
-
lint-codequality.json
expire_in
:
1 week
reports
:
codequality
:
lint-codequality.json
lint:8.3
:
extends
:
.lint
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment