-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
221 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
.travis.yml | ||
behat.yml | ||
.circleci/config.yml | ||
bitbucket-pipelines.yml | ||
bin/ | ||
features/ | ||
utils/ | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
pipelines: | ||
default: | ||
- step: | ||
image: php:5.6 | ||
name: "PHP 5.6" | ||
script: | ||
# Install Dependencies | ||
- docker-php-ext-install mysqli | ||
- apt-get update && apt-get install -y subversion --no-install-recommends | ||
|
||
# Install PHPCS | ||
- curl -o /usr/local/bin/phpcs -fSL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && chmod +x /usr/local/bin/phpcs | ||
- phpcs --version | ||
|
||
# Install WordPress Coding Standards | ||
- WPCS_VERSION=0.14.1 | ||
- curl -o wpcs.tar.gz -fSL "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/${WPCS_VERSION}.tar.gz" | ||
- mkdir -p /var/wpcs && tar -xzf wpcs.tar.gz --directory /var/wpcs --strip-components 1 && rm wpcs.tar.gz | ||
- phpcs --config-set show_progress 1 && phpcs --config-set colors 1 && phpcs --config-set installed_paths /var/wpcs | ||
|
||
## Run PHPCS | ||
- phpcs | ||
|
||
# Install PHPUnit | ||
- PHPUNIT_VERSION=5.7.27 | ||
- curl -o /usr/local/bin/phpunit "https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar" && chmod +x /usr/local/bin/phpunit | ||
- phpunit --version | ||
|
||
## Run PHPUnit | ||
- bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true | ||
- phpunit | ||
services: | ||
- database | ||
|
||
- step: | ||
image: php:7.0 | ||
name: "PHP 7.0" | ||
script: | ||
# Install Dependencies | ||
- docker-php-ext-install mysqli | ||
- apt-get update && apt-get install -y subversion --no-install-recommends | ||
|
||
# Install PHPCS | ||
- curl -o /usr/local/bin/phpcs -fSL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && chmod +x /usr/local/bin/phpcs | ||
- phpcs --version | ||
|
||
# Install WordPress Coding Standards | ||
- WPCS_VERSION=0.14.1 | ||
- curl -o wpcs.tar.gz -fSL "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/${WPCS_VERSION}.tar.gz" | ||
- mkdir -p /var/wpcs && tar -xzf wpcs.tar.gz --directory /var/wpcs --strip-components 1 && rm wpcs.tar.gz | ||
- phpcs --config-set show_progress 1 && phpcs --config-set colors 1 && phpcs --config-set installed_paths /var/wpcs | ||
|
||
## Run PHPCS | ||
- phpcs | ||
|
||
# Install PHPUnit | ||
- PHPUNIT_VERSION=6.5.6 | ||
- curl -o /usr/local/bin/phpunit "https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar" && chmod +x /usr/local/bin/phpunit | ||
- phpunit --version | ||
|
||
## Run PHPUnit | ||
- bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true | ||
- phpunit | ||
services: | ||
- database | ||
|
||
- step: | ||
image: php:7.1 | ||
name: "PHP 7.1" | ||
script: | ||
# Install Dependencies | ||
- docker-php-ext-install mysqli | ||
- apt-get update && apt-get install -y subversion --no-install-recommends | ||
|
||
# Install PHPCS | ||
- curl -o /usr/local/bin/phpcs -fSL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && chmod +x /usr/local/bin/phpcs | ||
- phpcs --version | ||
|
||
# Install WordPress Coding Standards | ||
- WPCS_VERSION=0.14.1 | ||
- curl -o wpcs.tar.gz -fSL "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/archive/${WPCS_VERSION}.tar.gz" | ||
- mkdir -p /var/wpcs && tar -xzf wpcs.tar.gz --directory /var/wpcs --strip-components 1 && rm wpcs.tar.gz | ||
- phpcs --config-set show_progress 1 && phpcs --config-set colors 1 && phpcs --config-set installed_paths /var/wpcs | ||
|
||
## Run PHPCS | ||
- phpcs | ||
|
||
# Install PHPUnit | ||
- PHPUNIT_VERSION=6.5.6 | ||
- curl -o /usr/local/bin/phpunit "https://phar.phpunit.de/phpunit-${PHPUNIT_VERSION}.phar" && chmod +x /usr/local/bin/phpunit | ||
- phpunit --version | ||
|
||
## Run PHPUnit | ||
- bash bin/install-wp-tests.sh wordpress_tests root root 127.0.0.1 latest true | ||
- phpunit | ||
services: | ||
- database | ||
|
||
definitions: | ||
services: | ||
database: | ||
image: mysql:latest | ||
environment: | ||
MYSQL_DATABASE: 'wordpress_tests' | ||
MYSQL_ROOT_PASSWORD: 'root' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
.DS_Store | ||
Thumbs.db | ||
behat.yml | ||
bitbucket-pipelines.yml | ||
bin | ||
.circleci/config.yml | ||
composer.json | ||
|
This file contains 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