Skip to content

Instantly share code, notes, and snippets.

@bhubbard
Forked from thanhluu/codeship.io.yml
Created May 17, 2016 21:47
Show Gist options
  • Save bhubbard/7e7ce417aeb78d877aace0a4e0e45195 to your computer and use it in GitHub Desktop.
Save bhubbard/7e7ce417aeb78d877aace0a4e0e45195 to your computer and use it in GitHub Desktop.
Test WordPress Theme from Bitbucket on Codeship
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