Slide 1

Slide 1 text

C [ I | D ] Indra Gunawan Continuous Integration & Continuous Deployment

Slide 2

Slide 2 text

Indra Gunawan Ø Senior Web Developer at OttenCoffee.co.id Ø Creator PaketHub.com Ø Email: [email protected] [email protected] @IndraGunawan

Slide 3

Slide 3 text

Agenda Ø What Ø Why Ø CI Tools Ø Travis-CI Ø Demo

Slide 4

Slide 4 text

Continuous Integration is a software development practice where members of a team integrate their work frequently … verified by an automated build (including test) to detect integration errors as quickly as possible. - Martin Fowler

Slide 5

Slide 5 text

Why Continuous Integration Ø Run your tests in the real world. Ø Increase your code coverage Ø Deploy your code to production Ø Build stuff faster Ø Don't break stuff Ø Decrease code review time

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Continuous Integration Tools Ø Travis CI (https://travis-ci.org/) Ø CircleCI (https://circleci.com) Ø GitLab CI (https://about.gitlab.com/features/gitlab-ci- cd) Ø TeamCity (https://www.jetbrains.com/teamcity) Ø Jenkins (https://jenkins.io) Ø and many more…

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Fire CI Process $ git push

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

Continuous Deployment software development practice in which every code change goes through the entire pipeline and is put into production automatically, resulting in many production deployments every day. It does everything that Continuous Delivery does, but the process is fully automated, there's no human intervention at all. - Marcia Ramos

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Travis CI

Slide 15

Slide 15 text

Travis CI – Single Build

Slide 16

Slide 16 text

Travis CI – Env Vars

Slide 17

Slide 17 text

Travis CI x GitHub

Slide 18

Slide 18 text

Basic CI Configuration Ø Machine and Language specific Ø Branch selection Ø Command or Scripts Ø Notifications

Slide 19

Slide 19 text

.travis.yml

Slide 20

Slide 20 text

Continuous Deployment

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

DEMO

Slide 23

Slide 23 text

Question and Answer ?