News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Adam Culp:
Fun with Travis CI and PHP projects
July 14, 2014 @ 10:43:53

Adam Culp has a new post to his site sharing some of his fun with Travis CI and his PHP-based applications. He recently started using it and provides a step-by-step guide of how he got started with some handy tips along the way. Travis CI is a continuous integration platform providing processes that run automated testing or other build processes when new commits are made to a repository.

I know I should have done this a long time ago, but I finally got my hands dirty with Travis CI. I wanted to set up a php project on github to use Travis CI to monitor the status, in case I forgot to run the tests prior to pushing. Unfortunately it was not as easy as it's made out to be. But now that I've done it once, it'll be easier next time. So, here is how I tackled it.

He walks you through five (or really six) different steps to getting a build process set up for your repository (complete with screenshots):

  • Create a Travis CI account and link it to your GitHub account
  • Add the repository to connect the build to
  • Make a ".travis.yml" file to configure the build (his runs PHPUnit tests)
  • Validate that PHPUnit runs locally
  • Verify the webhook for Travis CI has been set up correctly

Finally, he includes a bit of description about a successful build and how to add the "badge" showing the current build status to the README of your repository (using Markdown syntax).

0 comments voice your opinion now!
travisci introduction project adamculp guide

Link: http://www.geekyboy.com/archives/908

blog comments powered by Disqus

Similar Posts

Freek Lijten: SOLID - The D is for Dependency Inversion Principle

Stefan Mischook's Blog: Object Oriented PHP Videos are now out!

WebProNews: Introduction To Regular Expressions In PHP

PHPMaster.com: PHP Sessions

Greg Beaver\'s Blog: Custom project timeline/bug tracker for Chiara_PEAR_Server


Community Events





Don't see your event here?
Let us know!


update tool mvc symfony podcast package version series interview community framework composer release library voicesoftheelephpant laravel language introduction opinion security

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework