guestbook

A sample application for testing different CI services.

Stars
4

Guestbook Sample Application

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).

Work with this project

# 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

CI Services

Travis

Website: https://travis-ci.org

CircleCI

Website: https://circleci.com

GitLab CI

Website: https://gitlab.com

scrutinizer

Coveralls

Code Climate