Skip to content

A demo of how to get MySQL/MariaDB connections working on CircleCI

License

Notifications You must be signed in to change notification settings

fahrul66/php-mysql-circleci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP and MySQL/MariaDB demo on CircleCI

This repository is a very small demonstration of installing a MySQL/MariaDB server on the CircleCI continuous integration platform, installing PHP, and then making a database connection. It was originally written to help a fellow software engineer on the CircleCI forum, and is kept here to be useful to others.

This repo does not do anything useful in itself, other than teach readers how to set up this combination of software on a CircleCI build server.

Instructions

  1. Clone this repo to your own GitHub account

  2. Get yourself a free CircleCI account, signing in with GitHub

  3. Add your GitHub project using the "Add Projects" tab

  4. Click the 'Start building' button

CircleCI will discover the configuration file and build according to the set-up in there. You should get a "green build", which will say that the installation and database connection was successful.

Support

If you get stuck with using this repo, please post on the CircleCI forum.

Further development

This config just uses one Docker image to do the build, and installs MariaDB into that image. However, a separate Docker image could be spun up for MariaDB instead of installing it. It does not really matter which of these approaches you take, other than you may find that one is faster than the other.

About

A demo of how to get MySQL/MariaDB connections working on CircleCI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%