Run performance tests directly from PHP

[MAILPOET-4945]
This commit is contained in:
Jan Jakes
2023-03-01 14:37:08 +01:00
committed by Veljko V
parent ccfce23c30
commit d30772ea7c
2 changed files with 7 additions and 3 deletions

View File

@ -474,6 +474,11 @@ jobs:
- run:
name: 'Set up virtual host'
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:
name: 'Pull test docker images'
# Pull docker images with 3 retries
@ -487,8 +492,7 @@ jobs:
- run:
name: Run performance tests
command: |
cd tests/performance
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
./do test:performance --url=https://qawp.net --scenario pullrequests
- run:
name: Check exceptions
command: |

View File

@ -2,7 +2,7 @@ version: '3.9'
services:
setup:
image: mailpoet/wordpress:8.2RC6-cli_20230209.1
image: wordpress:cli-2.7-php8.2
container_name: performance_setup
depends_on:
wordpress: { condition: service_started }