Slide 1

Slide 1 text

Continous what ? Deploy software in the 21th century

Slide 2

Slide 2 text

Not continuity

Slide 3

Slide 3 text

Not code

Slide 4

Slide 4 text

risk

Slide 5

Slide 5 text

Progress is impossible without change - George Bernard Shaw

Slide 6

Slide 6 text

Move fast and break things - Mark Zuckerberg

Slide 7

Slide 7 text

break Don’t sh*t

Slide 8

Slide 8 text

tools culture

Slide 9

Slide 9 text

culture Let’s talk

Slide 10

Slide 10 text

Source Code Management

Slide 11

Slide 11 text

The bad

Slide 12

Slide 12 text

The average master

Slide 13

Slide 13 text

Feature Branches master add kittens

Slide 14

Slide 14 text

Feature Branches Rule #1 master is always deployable

Slide 15

Slide 15 text

Feature Branches Rule #2 change happens in feature branches

Slide 16

Slide 16 text

Pull Requests

Slide 17

Slide 17 text

Feature Branches Rule #3 small and trackable changes

Slide 18

Slide 18 text

Tracking Site Tracker PR #1 PR #2 PR #3 PR #4 PR #6

Slide 19

Slide 19 text

Unit Tests

Slide 20

Slide 20 text

What is the unit Test? 1 2 3

Slide 21

Slide 21 text

Unit Testing protects (t - 1)

Slide 22

Slide 22 text

Feature Branches Rule #4 build a reliable test suite

Slide 23

Slide 23 text

make them fast

Slide 24

Slide 24 text

You always test

Slide 25

Slide 25 text

Yes, and how ?!

Slide 26

Slide 26 text

Continous Integration

Slide 27

Slide 27 text

Kontinuierliche Integration ist ein Begriff aus der Software-Entwicklung, der den Prozess des fortlaufenden Zusammenfügens von Komponenten zu einer Anwendung beschreibt. […] - Wikipedia

Slide 28

Slide 28 text

code

Slide 29

Slide 29 text

production

Slide 30

Slide 30 text

code (compile) test (staging) production report

Slide 31

Slide 31 text

tools to the rescue

Slide 32

Slide 32 text

python fanboy

Slide 33

Slide 33 text

nosetests unit-testing

Slide 34

Slide 34 text

nosetests unit-testing orthogonal edge cases

Slide 35

Slide 35 text

selenium integration-testing

Slide 36

Slide 36 text

selenium why-is-this-not-working-anymore?!

Slide 37

Slide 37 text

sphinx documentation

Slide 38

Slide 38 text

featureflags I see something you can’t see

Slide 39

Slide 39 text

featureflags shiny new code old code is a developer

Slide 40

Slide 40 text

laboratory When old things have to go User old code new code request result

Slide 41

Slide 41 text

import laboratory experiment = laboratory.Experiment() with experiment.control() as c: c.record(get_objects_from_database()) with experiment.candidate() as c: c.record(get_objects_from_cache()) objects = experiment.run() laboratory When old things have to go

Slide 42

Slide 42 text

fabric automate deploys

Slide 43

Slide 43 text

putting it together

Slide 44

Slide 44 text

travis-ci.org circleci.com

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

Questions [email protected] @sQu4rks