Upload
stephen-ritchie
View
78
Download
4
Tags:
Embed Size (px)
Citation preview
Stephen D. Ritchie – Managing Consultant – Excella Consulting, Inc., 2300 Wilson Blvd, Suite 630, Arlington, VA 22201 – 703.840.8600 – http://excella.com
Continuous Integration:Blueprint, Toolbox, Master Craft
Stephen D. Ritchie@RuthlessHelp
Oct 11, 2014
NoVA CodeCamp (@NoVACodeCamp)October 2014
Stephen D. Ritchie
Live Tweet, Slides and Examples
• Twitter: @RuthlessHelp
• Slides: http://www.slideshare.net/ruthlesshelp
• Code Samples: http://github.com/ruthlesshelp
2
Stephen D. Ritchie
The Problem
SourceCode
1 23
3
Scott’sComputer
Susan’sComputerYou
1
2
3
Scott makes changes
Susan makes changes
You can’t build
Stephen D. Ritchie
What Went Wrong?
4
Conflicts
Missing Files
Breaking Changes
Stephen D. Ritchie 5
How do youfind
integrationissues?
Stephen D. Ritchie
Manual Integration
6
BuildRun Some Unit TestsPerform Static AnalysisClean + Rebuild All
Stephen D. Ritchie
Continuous Integration Blueprint
7
Stephen D. Ritchie
CI Server
SourceCode
8
Scott’sComputer
Susan’sComputerYou
CIServer
Stephen D. Ritchie
CI Server
9
Triggered by SCM
Automated Buildand
Stephen D. Ritchie
CI – Per Commit Steps
10
1. Clean + Rebuild All2. Run All Unit Tests
Coding Standards
3. AnalysisStatic Code Analysis
Stephen D. Ritchie
Continuous Integration Toolbox
11
Stephen D. Ritchie
CI Server – Jenkins
12
http://jenkins-ci.org/
FreeOpen Source
Stephen D. Ritchie
CI Server – Cruise Control
13
http://cruisecontrol.sourceforge.net/
FreeOpen Source
http://www.cruisecontrolnet.org/
Stephen D. Ritchie
CI Server – TeamCity
14
CommercialEasy to Use
http://www.jetbrains.com/teamcity/
Stephen D. Ritchie 15
Perhaps an example would
be helpful
Stephen D. Ritchie
Continuous Integration Master Craft
16
Stephen D. Ritchie
The Master Craft
17
Unit TestingPlus
Code Coverage
Stephen D. Ritchie
The Master Craft
18
Integration Testing
System Testing
Acceptance Testing
Stephen D. Ritchie
The Master Craft
19
Code Quality
Metrics
Visualizations
Detections
Checks
Analysis
Stephen D. Ritchie
The Master Craft
20
ReportingAnd
Visibility
Stephen D. Ritchie
The Master Craft
21
PackagingAnd
Deployment
Stephen D. Ritchie
Stephen’s Contact Info
• Email:[email protected]
• LinkedIn:http://www.linkedin.com/in/sritchie
22