Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 2.95 KB

ci-servers.md

File metadata and controls

43 lines (33 loc) · 2.95 KB

CI Servers Deploy Code, Not Ops

Martin Fowler defines continuous deployment as "a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day." This seminal article defines the key best practices as:

  • Maintain a single source repository.
  • Automate the build.
  • Make your build self-testing.
  • Everyone commits to the mainline every day.
  • Every commit should build the mainline on an integration machine.
  • Keep the build fast.
  • Test in a clone of the production environment.
  • Make it easy for anyone to get the latest executable.
  • Everyone can see what's happening.
  • Automate deployment.

The CI server executes a specific action on a repository when it receives a commit hook. For example, if a developer makes a commit against a repository called foo, the CI server might:

  • Clone down a local copy of foo.
  • Execute foo's test suites (see the section on application stacks for more about this).
  • If the tests fail, send an alert to the development team and halt the process.
  • If the test suite passes, deploy the code to a staging or even production server.

Tools

Here are a few of the CI servers you might encounter:

  • Hudson. Hudson is a CI server from Oracle written in Java.
  • Jenkins. Jenkins, a fork of Hudson, is one of a leading open source CI servers. It has a host of useful plug-ins for tasks like build tasks, error reporting, and repository management.
  • Buildbot. Buildbot is an open source CI server based on Python.
  • Travis. Travis is a hosted CI solution that is used primarily by the Ruby community, particularly Rails.
  • Hubot. Hubot is a chatbot from GitHub. It allows you to easily create scripts that you can use inside your chatroom (e.g., Campfire or HipChat) to deploy new code, receive messages from the build server, or get messages from your monitoring tools when things go wrong.
  • Shippable Shippable is a hosted CI solution built on Docker with Webhooks.
  • Wercker. Wercker is a hosted CI solution built on Docker with Webhooks.
  • Circle CI is a hosted Continuous Integration and Deployment with Docker support.
  • Drone is an open-source (and hosted ) Continuous Integration platform built on Docker

Continuous Deployment

  • Distelli. Deployment and process management.
  • Capistrano. Automation and deployment tool. Webistrano provides a web frontend to Capistrano.
  • GoCD is an open-source Continuous Delivery with pipeline model