Skip to content
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

Add PHP support for TCR #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nostradamnit
Copy link

Add PHP support for TCR

mob-timer:
duration: 5m0s
tcr:
language: pho
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: language should be php

- os: [windows]
arch: ["386", amd64, arm64]
command: .\vendor\bin\phpunit
arguments: [--list-tests]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From I could see, running phpunit --list-tests allows to detect syntax errors in the test files (which is good), but it does not seem to spot syntax error in source files. Do you know of any other php tool that could run syntax check on both src and test files?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just tried an alternative tool to run the syntax check that seems to do the job: php-parallel-lint
When running the command parallel-lint --exclude vendor . I get RC=0 if all src and test files are syntaxically correct, and RC=1 when any of these is not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants