Skip to content

Example of configuring CircleCI to work with a PHP and a database

Notifications You must be signed in to change notification settings

DaveLiddament/circleci-php-database

Repository files navigation

Demo of basic symfony 4 project and circle CI config

Shows how to create a test that talks to a database.

Make sure your test database config (see: .env.test) matches the database setup in .circleci/config.yml. In this example:

.env.test

DATABASE_URL=mysql://demo:[email protected]:3306/demo

.circleci/config.yml

    - run: mysql -h 127.0.0.1 -u root -e "CREATE DATABASE demo;"
    - run: mysql -h 127.0.0.1 -u root -e "CREATE USER demo IDENTIFIED BY 'mypass';"
    - run: mysql -h 127.0.0.1 -u root -e "GRANT ALL ON demo.* TO demo;"

About

Example of configuring CircleCI to work with a PHP and a database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published