Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffold circle.yml to run against range of supported WP versions #5

Merged
merged 2 commits into from Mar 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@
**Contributors:** (this should be a list of wordpress.org userid's)
**Donate link:** http://example.com/
**Tags:** comments, spam
**Requires at least:** 3.7
**Requires at least:** 4.4
**Tested up to:** 4.8-alpha-39357-src
**Stable tag:** 0.1.0
**License:** GPLv2 or later
Expand Down
16 changes: 14 additions & 2 deletions circle.yml
Expand Up @@ -2,6 +2,8 @@ machine:
php:
version: 5.6.22
environment:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
WP_CORE_DIR: /tmp/wordpress/
PATH: $HOME/.composer/vendor/bin:$PATH

dependencies:
Expand All @@ -10,10 +12,20 @@ dependencies:

test:
pre:
- bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 latest
- |
composer global require wp-coding-standards/wpcs
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs
override:
- phpcs --standard=phpcs.ruleset.xml $(find . -name '*.php')
- phpunit
- |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 4.4
phpunit
- |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 latest
phpunit
- |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
bash bin/install-wp-tests.sh wordpress_test ubuntu '' 127.0.0.1 trunk
phpunit
2 changes: 1 addition & 1 deletion readme.txt
Expand Up @@ -2,7 +2,7 @@
Contributors: (this should be a list of wordpress.org userid's)
Donate link: http://example.com/
Tags: comments, spam
Requires at least: 3.7
Requires at least: 4.4
Tested up to: 4.8-alpha-39357-src
Stable tag: 0.1.0
License: GPLv2 or later
Expand Down