Level Up!  CI/CD

Continuous Integration and Deployment

Curtis Spendlove

Contents

- Preface

- Chapter 1 Introduction

- 1.1 Fork / Cone Project

- Chapter 2 A Basic Test Harness with GitLab

- 2.1 Sample Project

- 2.2 Add .gitlab-ci.yml

- 2.2.1 Commit, Push, and Merge

- 2.3 Add Linting

- 2.3.1 Auto-Linting

- 2.3.2 Fail Softly

- 2.4 Add Tests

- 2.4.1 Create a Test

- Chapter 3 Expanding the GitLab Test Harness

- 3.1 Fix the Linting

- 3.2 Add Code Coverage

- 3.2.1 GitLab Code Coverage

- 3.2.2 Do-It Yourself

- 3.3 Add Code Coverage HTML Report

- 3.4 Add GitLab Pages Job

- 3.4.1 Uncomment the Master Constraint

- 3.5 Tests, Tests, Tests

- 3.6 Badges, Badges! We don’t NEED no Stinkin’ Badges

- Chapter 4 Adding Continuous Deployment to the Pipeline

- Chapter 5 BitBucket CI/CD

- Chapter 6 GitHub CI/CD

Preface

This is an example of “frontmatter”, which comes before the main text of the book.

Chapter 1

Introduction

After the book is completed (or mostly completed) there will be a public repo representing the code in the book.  It isn’t here, because I’m still thinking through the exact form I want it to take (I want it to be as instructional as possible, and that is going against my nature to heavily rebase my code for clean histories.)

:)

1.1 Fork / Cone Project

fork / clone sample project…

push it to github on your account

continue on, brave warrior

IF, you don’t want to use the repo, you can use a new express project.  Actually I might want to make it so you do this anyway…at least in the GitLab chapters.  A simple project to get to know CI; then we can push a much better codebase into CI.