Skip to content

Commit

Permalink
Merge pull request #92 from actblue/develop
Browse files Browse the repository at this point in the history
Update main to develop
  • Loading branch information
julissa authored May 11, 2022
2 parents 74e381f + 0a88c00 commit e01ff04
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ references:
# Container configuration.
container_config: &container_config
docker:
- image: circleci/php:7.2-node-browsers
- image: cimg/php:7.2-browsers
environment:
- WP_CORE_DIR: *WP_CORE_DIR
- WP_PLUGIN_NAME: *WP_PLUGIN_NAME
Expand Down Expand Up @@ -64,31 +64,10 @@ jobs:
name: Run code quality tests
command: cd $WP_PLUGIN_NAME && vendor/bin/phpcs

unit_tests:
<<: *container_config
docker:
- image: circleci/php:7.2
- image: circleci/mysql:5.7
steps:
- checkout
- *install_tools
- run:
name: Install dependencies
command: |
sudo apt-get update && sudo apt-get install default-mysql-client
sudo docker-php-ext-install mysqli
composer global require "phpunit/phpunit ^5"
- run:
name: Run unit tests
command: |
rm -rf $WP_TESTS_DIR $WP_CORE_DIR
bash $WP_PLUGIN_NAME/bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest
cd $WP_PLUGIN_NAME && $HOME/.composer/vendor/bin/phpunit
e2e_tests:
<<: *container_config
docker:
- image: circleci/php:7.2-node
- image: cimg/php:7.2-node
- image: circleci/mysql:5.7
steps:
- checkout
Expand Down Expand Up @@ -123,9 +102,6 @@ jobs:
- run:
name: Install MySQL client
command: sudo apt-get update && sudo apt-get install default-mysql-client
- run:
name: Install MySQL PHP extension
command: sudo docker-php-ext-install mysqli
- run:
name: Install WordPress
command: bash .circleci/install-wordpress.sh
Expand Down Expand Up @@ -182,9 +158,6 @@ workflows:
- code_quality:
requires:
- build
- unit_tests:
requires:
- build
- e2e_tests:
requires:
- build
Expand Down

0 comments on commit e01ff04

Please sign in to comment.