A sample application for testing different CI services.
This project demonstrates a best practice, how to setup a PHP project. For simplicity reasons, it uses Apache PHP module and only a single database. Tests are interacting with the database and everything from build to test runs inside docker. Therefore, the only requirements for running this projects are Docker and Make (>=4.4, better install with Brew).
# Build the needed Docker images and install the composer dependencies.
# This target needs to be executed before start, test, or fix can be run.
make build
# Once the Docker images are built, the composer dependencies can also be updated running
make vendor
# To start the application (in background), run the following command
make start
# Then run this command to open the project in your browser
make open
# When finished, stop the application
make stop
# Or remove all data (including, container and volumes)
make clean
# Execute tests
make test
# Fix code style
make fix
# Open a shell in the build container
make shell
Website: https://travis-ci.org
Website: https://circleci.com
Website: https://gitlab.com