-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Test Reporting and Apply WPCS (#47)
- Loading branch information
Showing
17 changed files
with
537 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
service_name: travis-ci | ||
coverage_clover: tests/logs/clover.xml | ||
json_path: tests/logs/coveralls-upload.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
language: php | ||
|
||
php: | ||
- 7.0 | ||
- 7.2 | ||
- 5.6 | ||
|
||
env: | ||
- WP_VERSION=latest DEV_LIB_PATH=vendor/xwp/wp-dev-lib WP_ORG_SLUG=widget-context | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libxml2-utils # For xmllint. | ||
|
||
install: | ||
- npm install | ||
- composer install | ||
- source $DEV_LIB_PATH/travis.install.sh | ||
|
||
script: | ||
- source $DEV_LIB_PATH/travis.script.sh | ||
- composer lint | ||
- composer test | ||
|
||
after_script: | ||
- source $DEV_LIB_PATH/travis.after_script.sh | ||
- vendor/bin/php-coveralls -v | ||
|
||
notifications: | ||
email: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="WordPress Coding Standards for Plugins"> | ||
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" /> | ||
<config name="ignore_warnings_on_exit" value="1" /> | ||
|
||
<arg name="extensions" value="php" /> | ||
<arg name="colors" /> | ||
<arg value="s" /><!-- Show sniff codes in all reports. --> | ||
|
||
<rule ref="WordPress-Core"> | ||
<exclude name="WordPress.Files.FileName" /><!-- We'll be switching to PSR-4 naming soon. --> | ||
<exclude name="Generic.Formatting.MultipleStatementAlignment" /> | ||
<exclude name="WordPress.Arrays.MultipleStatementAlignment" /> | ||
</rule> | ||
|
||
<!-- | ||
<rule ref="WordPress-Docs"> | ||
<exclude name="Squiz.Commenting.FileComment" /> | ||
</rule> | ||
--> | ||
|
||
<exclude-pattern>/node_modules</exclude-pattern> | ||
<exclude-pattern>/tests</exclude-pattern> | ||
<exclude-pattern>/vendor</exclude-pattern> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
<phpunit | ||
colors="true" | ||
bootstrap="tests/php/bootstrap.php" | ||
> | ||
> | ||
|
||
<testsuites> | ||
<testsuite name="Widget Context Tests"> | ||
<directory>tests/php</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<logging> | ||
<log type="coverage-clover" target="tests/logs/clover.xml"/> | ||
</logging> | ||
|
||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.