Skip to content

wp-media/auto-e2e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Context

This repository contains a script that runs rocket-e2e automatically and regularly. The script is designed to run on dedicated test environments (see WP Media internal documentation).

What the script does

The script runs the following loop, until being stopped:

  • Clone or Update WP Rocket from git develop branch
  • Package the develop version of WP Rocket in a zip file.
  • Move the zip file to its expected location by rocket-e2e
  • Update the rocket-e2e repo to the latest git develop branch.
  • Run rocket-e2e (with specific options)
  • Copy & Rename the wp-rocket-e2e/test-results folder in wp-rocket-e2e/test-results-storage. Results are stored for 4 days.
  • Logs & sends to Slack the result of the run (#wpmedia_auto-e2e-reports)
  • Wait a few minutes before starting another run.

How to run

  1. Clone the repository on the dedicated test environment.
  2. Ensure the configuration (CONFIG constant) matches the test environment folder structure and settings.
  3. Copy .env.example to .env and set the environment variables.
  4. Connect to the environment through a VNC server, open the terminal, navigate to the auto-e2e folder and run node auto-e2e.js

About

Runs automatically rocket-e2e on a dedicated server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •