AUTOMATED BUILDS AND CONTINUOUS INTEGRATION (1)

Содержание

Слайд 2

Continuous Integration is …

… a software development practice where members of a

Continuous Integration is … … a software development practice where members of
team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day. Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible
Martin Fowler

Слайд 3

The Integrate Button

CI is a process that consists of continuously compiling, testing,

The Integrate Button CI is a process that consists of continuously compiling,
inspecting and deploying source code

Слайд 4

What is NOT CI?

Scheduled integration points
Building via IDE
Continuous compilation

What is NOT CI? Scheduled integration points Building via IDE Continuous compilation

Слайд 5

What Is the Value of CI?

Reduce risks
Reduce repetitive manual processes
Generate deployable software

What Is the Value of CI? Reduce risks Reduce repetitive manual processes
at any time and at any place
Enable better project visibility
Establish greater confidence in the software product from the development team

Слайд 6

CI & Agile

“Our highest priority is to satisfy the customer through early

CI & Agile “Our highest priority is to satisfy the customer through
and continuous delivery of valuable software”
Agile Manifesto

Слайд 7

What you need to implement CI?

Team willingness
Version Control System
Automation-ready
Build scripts
Automated tests
(Optional)

What you need to implement CI? Team willingness Version Control System Automation-ready
Code audit
Static code quality analysis
Even Architecture verification
CI tool (checkout, build, run, publish)
(Optional) Visualization tool (CI tool plugins, Sonar, IDE plugins)

Слайд 8

When to Start Doing CI?

Early in the project is the best time
Later

When to Start Doing CI? Early in the project is the best
in the project this may be problematic
No time for such things
People are under pressure and resist the changes
Start slowly step by step (daily build, only compilation, small test suites)

Слайд 9

When Not CI

Tests are not developed and maintained
Nobody cares for failures on

When Not CI Tests are not developed and maintained Nobody cares for
CI server
Experimental Development or Prototyping
On projects that do not change frequently (Maintenance)
On projects with only one developer
On small-budget projects which cannot have separate server for CI

Слайд 10

Testing Included in CI

Unit
Integration
Functional
Acceptance
Performance
Database script and utilities
Deployment and updating scripts
Everything you

Testing Included in CI Unit Integration Functional Acceptance Performance Database script and
can automate, even UI and usability testing

Слайд 11

CI best practice

Single Source Repository
One team has one repository holding the

CI best practice Single Source Repository One team has one repository holding
mainline (trunk)
Checkout must include everything needed for the build
Automate the Build
Use a script or a build tool (e.g. Maven, Ant)
Manage dependencies
Make the build fast
Show all warnings and errors
Fail early

Слайд 12

CI best practice

Make your build self-testing
Run tests as part of the

CI best practice Make your build self-testing Run tests as part of
build process
Provide rapid feedback
Run long-running tests nightly but short-running tests after each commit
Test in the clone of production environment
Everyone Commits Often
Sends results of each failed/unstable build to the whole team
Nightly build sends info about all commits which were done during previous day
Automate Deployment (NOT for Production)
Automated code quality audits

Слайд 13

CI best practice

Automate as much as You can with common sense in

CI best practice Automate as much as You can with common sense in mind
mind

Слайд 14

Code quality audit

Is there something to test?

Code quality audit Is there something to test?

Слайд 15

Everyone can see what’s happening

Every team member has access to the results
Build

Everyone can see what’s happening Every team member has access to the
history and build status reports to make analysis and see project health level
Build status indicators to understand current build state
Use funny ways to visualize build status (lava lamps, separate monitor for dashboard)

Слайд 16

CI Team Rules

Person who breaks the build should prepare interesting material for

CI Team Rules Person who breaks the build should prepare interesting material
internal technical meeting
Person who breaks the build should buy a pizza for the next demo celebration
Special artifact like hat or cup for person who breaks the build
Dashboard with funny personas for each team member and build status

Слайд 17

CI Workflow

CI Workflow

Слайд 18

CI Workflow

CI Workflow

Слайд 19

Staged Build Process

Staged Build Process

Слайд 20

Building Software at every Change

Building Software at every Change

Слайд 21

CI Workflow

The logical processes of a build script

CI Workflow The logical processes of a build script

Слайд 22

Different environments

Different environments

Слайд 23

Running a private build to reduce integration build errors

Running a private build to reduce integration build errors

Слайд 24

Continuous Integration Delivery Deployment

Continuous Integration Delivery Deployment

Слайд 25

Continuous Integration Delivery Deployment

Continuous Integration Delivery Deployment

Слайд 26

Continuous Integration Delivery Deployment

Continuous Integration Delivery Deployment
Имя файла: AUTOMATED-BUILDS-AND-CONTINUOUS-INTEGRATION-(1).pptx
Количество просмотров: 33
Количество скачиваний: 0