CakePHP Continuous Integration and Deployment App
/*
*/
/* About */
This is app is about as rough as you can get. It’s like 100 steps away from even being alpha. Consider yourself warned. Plus, I coded it to fit my specific needs, so you’ll probably need to make some changes (and give back?) to make it fit your deployments. PHP5 only. I doubt it works on Windows. Will probably work on OS X, but I haven’t checked. Works on Linux.
/* Why Bother Then? */
/* What’s Missing */
/* Install Instructions */
/* Setup Instructions */
1. Visit http://<your_app>/users/install to create a user.
2. Click “add site” in upper right and create a site.
3. Click “add instance” to create an instance of the site (test, qa, stage, beta, production…)
- Enabled and name are pretty clear
- Path is the full path on the file system where you want the install to go.
- App and Cake Path are the full paths to the app and cake folders after the install. I did this because sometimes these folders aren’t in the root of the install path. These are only needed if you are going to be running unit tests.
- Skip Sync: any files and directories you don’t want deleted or sync’d as part of the build. I usually have database.php in here.
- Continous: will do a build anytime there is a new commit. If you don’t select this you will manually kick off builds.
- Version Control: Right now SVN and git are supported.
- Source is the path in your version control to the app. Branch is what branch/tag you want to build.
- Source username and password can be left blank if you some other form of auth setup. Or this can be set in the datasource in database.php
- Test is if you want to run the unit tests.
- Test Each is if you want to do a build and run the tests for every commit.
- Force Debug Off: will make sure that debug is set to 0.
- Version Txt: will write a version.txt in your webroot dir that will info about the current build.
/* Running The Build */