Created
September 3, 2017 03:12
-
-
Save mlteal/0103490e166d7afcd6748096a5a02d37 to your computer and use it in GitHub Desktop.
Initial CircleCI yml file for running phpunit and wpcs/phpcs
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
machine: | |
php: | |
version: 7.0.4 | |
environment: | |
WP_TESTS_DIR: /tmp/wordpress-tests-lib | |
WP_CORE_DIR: /tmp/wordpress/ | |
PATH: $HOME/.composer/vendor/bin:$PATH | |
dependencies: | |
pre: | |
- sudo apt-get update; sudo apt-get install subversion | |
test: | |
pre: | |
- | | |
composer global require wp-coding-standards/wpcs | |
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs | |
composer global require "phpunit/phpunit=5.7.*" | |
override: | |
- phpcs --standard=phpcs.ruleset.xml $(find . -name '*.php') | |
- | | |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR | |
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 latest | |
phpunit | |
WP_MULTISITE=1 phpunit | |
- | | |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR | |
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 trunk | |
phpunit | |
WP_MULTISITE=1 phpunit | |
- | | |
phpenv global 7.0.17 | |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR | |
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 latest | |
phpunit | |
WP_MULTISITE=1 phpunit | |
- | | |
phpenv global 7.1.3 | |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR | |
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 latest | |
phpunit | |
WP_MULTISITE=1 phpunit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment