forked from mirror/_s
Merge pull request #690 from corvannoorloos/master
Update travis.yml to adhere to coding style used in WordPress' CI file.
This commit is contained in:
commit
a4d2204396
|
@ -1,7 +1,7 @@
|
|||
# Travis CI (MIT License) configuration file for the Underscores WordPress theme
|
||||
# Travis CI (MIT License) configuration file for the Underscores WordPress theme.
|
||||
# @link https://travis-ci.org/
|
||||
|
||||
# For use with the Underscores WordPress theme
|
||||
# For use with the Underscores WordPress theme.
|
||||
# @link https://github.com/Automattic/_s
|
||||
|
||||
# Declare project language.
|
||||
|
@ -80,7 +80,7 @@ before_script:
|
|||
- git clone https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git wordpress-coding-standards
|
||||
# Hop into CodeSniffer directory.
|
||||
- cd php-codesniffer
|
||||
# Set install path for WordPress Coding Standards
|
||||
# Set install path for WordPress Coding Standards.
|
||||
# @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
|
||||
- scripts/phpcs --config-set installed_paths ../wordpress-coding-standards
|
||||
# Hop into themes directory.
|
||||
|
@ -100,7 +100,7 @@ script:
|
|||
# -p flag: Show progress of the run.
|
||||
# -s flag: Show sniff codes in all reports.
|
||||
# -v flag: Print verbose output.
|
||||
# -n flag: Do not print warnings (shortcut for --warning-severity=0)
|
||||
# -n flag: Do not print warnings. (shortcut for --warning-severity=0)
|
||||
# --standard: Use WordPress as the standard.
|
||||
# --extensions: Only sniff PHP files.
|
||||
- $WP_DEVELOP_DIR/php-codesniffer/scripts/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php
|
||||
|
|
Reference in New Issue