-
-
Save bhubbard/7e7ce417aeb78d877aace0a4e0e45195 to your computer and use it in GitHub Desktop.
Test WordPress Theme from Bitbucket on Codeship
This file contains hidden or 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
cd .. | |
# Install CodeSniffer for WordPress Coding Standards checks. | |
git clone https://github.com/squizlabs/PHP_CodeSniffer.git php-codesniffer | |
# Install WordPress Coding Standards. | |
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 | |
scripts/phpcs --config-set installed_paths ../wordpress-coding-standards | |
# After CodeSniffer install you should refresh your path. | |
cd .. | |
phpenv rehash | |
$(pwd)/php-codesniffer/scripts/phpcs -p -s -v -n src/bitbucket.org/thanhluu/theme-name --standard=src/bitbucket.org/thanhluu/theme-name/tools/codesniffer.ruleset.xml --extensions=php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment