Best thing since sliced cake.
Prerequisites
- MySQL 8+
- PHP 8.1+
- Composer
Copy .env.sample
into .env
and fill in the proper values.
Install Composer dependencies.
Run the migrations on your database with:
composer run-script migrate-up
Run the server:
composer run-script start
Or run the tests:
composer test
Or run the tests on a freshly migrated memory database:
WTS_DB_IN_MEMORY=1 composer test
The tests can be run directly on the mysql database or in memory. You can enable this by setting the environment variable WTS_DB_IN_MEMORY
to 1.
This pipeline runs the tests, as well as Code Sniffer and rudimentary validation on the Composer configuration.
Connects via SSH to my server and deploys the new version.
Runs every hour to run all tests (unit + integration) in production. It will send an e-mail on fail to notify me of the issue.