mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2025-08-30 03:11:24 +08:00
Tests: move ruleset check file to tests directory
We'll probably need to re-evaluate this file and its function anyway, but for now, let's at least move it to a more logical place now there is a `Tests` directory and rename it to use the `inc` extension to make it clear that it's not an actual test file, but a test *case* file.
This commit is contained in:
parent
39481147e8
commit
439eb9060f
2 changed files with 8 additions and 8 deletions
16
.travis.yml
16
.travis.yml
|
@ -87,10 +87,10 @@ jobs:
|
|||
php: 7.4
|
||||
env: PHPCS_BRANCH="dev-master"
|
||||
script:
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress-Core
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress-Docs
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress-Extra
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Core
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Docs
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Extra
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress
|
||||
|
||||
# Test for fixer conflicts by running the auto-fixers of the complete WPCS over the test case files.
|
||||
# This is not an exhaustive test, but should give an early indication for typical fixer conflicts.
|
||||
|
@ -103,10 +103,10 @@ jobs:
|
|||
php: 7.4
|
||||
env: PHPCS_BRANCH="3.5.0"
|
||||
script:
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress-Core
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress-Docs
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress-Extra
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./bin/class-ruleset-test.php --standard=WordPress
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Core
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Docs
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress-Extra
|
||||
- $(pwd)/vendor/bin/phpcs -ps ./Tests/RulesetCheck/class-ruleset-test.inc --standard=WordPress
|
||||
|
||||
#### QUICK TEST STAGE ####
|
||||
# This is a much quicker test which only runs the unit tests and linting against the low/high
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue