Run performance tests directly from PHP
[MAILPOET-4945]
This commit is contained in:
@ -474,6 +474,11 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: 'Set up virtual host'
|
name: 'Set up virtual host'
|
||||||
command: echo 127.0.0.1 mailpoet.loc | sudo tee -a /etc/hosts
|
command: echo 127.0.0.1 mailpoet.loc | sudo tee -a /etc/hosts
|
||||||
|
- run:
|
||||||
|
name: 'Set up PHP'
|
||||||
|
command: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y php8.1-cli
|
||||||
- run:
|
- run:
|
||||||
name: 'Pull test docker images'
|
name: 'Pull test docker images'
|
||||||
# Pull docker images with 3 retries
|
# Pull docker images with 3 retries
|
||||||
@ -487,8 +492,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Run performance tests
|
name: Run performance tests
|
||||||
command: |
|
command: |
|
||||||
cd tests/performance
|
./do test:performance --url=https://qawp.net --scenario pullrequests
|
||||||
docker-compose run -u 0 --workdir="/var/www/html/wp-content/plugins/mailpoet" setup /var/www/html/wp-content/plugins/mailpoet/do test:performance --url=https://qawp.net --scenario pullrequests
|
|
||||||
- run:
|
- run:
|
||||||
name: Check exceptions
|
name: Check exceptions
|
||||||
command: |
|
command: |
|
||||||
|
@ -2,7 +2,7 @@ version: '3.9'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
setup:
|
setup:
|
||||||
image: mailpoet/wordpress:8.2RC6-cli_20230209.1
|
image: wordpress:cli-2.7-php8.2
|
||||||
container_name: performance_setup
|
container_name: performance_setup
|
||||||
depends_on:
|
depends_on:
|
||||||
wordpress: { condition: service_started }
|
wordpress: { condition: service_started }
|
||||||
|
Reference in New Issue
Block a user