01.02.2013 Views

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

continuous integration<br />

For you and your team,<br />

nothing changes from the<br />

version control process you<br />

already have. You start out<br />

by updating some code, and<br />

then checking it in.<br />

1<br />

Bob checks in some code.<br />

252 Chapter 7<br />

Wouldn’t it be dreamy if there was a tool that ran all<br />

my tests for me, every time I checked in code, so I<br />

wouldn’t be embarrassed in front <strong>of</strong> my team?<br />

Continuous integration tools run your tests<br />

when you check in your code<br />

We’ve already got a version control tool that keeps track <strong>of</strong><br />

our code, and now we’ve got a set <strong>of</strong> automated tests. We just<br />

need a way to tie these two systems together. There are version<br />

control tools (or applications that integrate with version<br />

control tools) that will compile your code, run your automated<br />

tests, and even display and mail out reports—as soon as you<br />

(or Bob) commit code into your repository.<br />

This is all part <strong>of</strong> continuous integration (CI), and it looks<br />

like this:<br />

Here’s some code.<br />

2<br />

The version control tool notifies<br />

your CI tool that there’s new code<br />

available.<br />

New code’s available!<br />

Download at WoweBook.Com<br />

The version control server<br />

does its normal check-in<br />

procedures, like updating the<br />

revision number, but now it<br />

has a continuous integration<br />

tool it works with, too.<br />

Sometimes the CI tool watches<br />

your repository for changes, but<br />

the end result is the same-the<br />

whole thing is automatic.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!