Slide 1

Slide 1 text

CI/CD for React Native

Slide 2

Slide 2 text

Every great change is preceded by chaos. Deepak Chopra

Slide 3

Slide 3 text

Works on my machine! Pack your machine. We send it to production!

Slide 4

Slide 4 text

Developer *.apk Tester

Slide 5

Slide 5 text

https://martinfowler.com/articles/continuousIntegration.html Martin Fowler Continuous Integration is a software development practice where members of a team integrate their work frequently, usually each person integrates at least daily - leading to multiple integrations per day.

Slide 6

Slide 6 text

https://martinfowler.com/articles/continuousIntegration.html Martin Fowler Each integration is verified by an automated build (including test) to detect integration errors as quickly as possible.

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Master branch Feature Branch

Slide 9

Slide 9 text

Azure Pipelines github.com/ariya/hello-react-native

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

- job: Android pool: vmImage: 'macOS 10.13’ steps: - task: NodeTool@0 inputs: versionSpec: '8.x’ - script: yarn install - task: Gradle@2 inputs: workingDirectory: 'android/’ gradleWrapperFile: 'android/gradlew’ tasks: 'assembleDebug' azure-pipelines.yml

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

========================== Starting Command Output ============== [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/48d0edca-9f9e-4690-bf28-c96bd1471508.sh > [email protected] static-code-analysis /home/vsts/work/1/s > npm run tslint && npm run prettier > [email protected] tslint /home/vsts/work/1/s > tslint -p src > [email protected] prettier /home/vsts/work/1/s > prettier --check "src/**/*.{ts,tsx}" Checking formatting... All matched files use Prettier code style!

Slide 18

Slide 18 text

========================== Starting Command Output ================= [command]/bin/bash --noprofile --norc /home/vsts/work/_temp/e0e0cdd8-2599- 4d4d-882e-32a481a62cbe.sh > [email protected] dynamic-code-analysis /home/vsts/work/1/s > jest --coverage PASS src/__tests__/App-test.tsx (6.991s) ✓ renders correctly (537ms) ----------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | ----------|----------|----------|----------|----------|-------------------| All files | 100 | 100 | 100 | 100 | | App.tsx | 100 | 100 | 100 | 100 | | ----------|----------|----------|----------|----------|-------------------| Test Suites: 1 passed, 1 total Tests: 1 passed, 1 total Snapshots: 0 total Time: 16.782s Ran all test suites.

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

App Center github.com/ariya/hello-react-native

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

Tester

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Epilog

Slide 29

Slide 29 text

App Center Azure Pipelines

Slide 30

Slide 30 text

Mitigate Human Error 1

Slide 31

Slide 31 text

Guarantee Consistency 2

Slide 32

Slide 32 text

Authoritative Reference 3

Slide 33

Slide 33 text

Extensive Automation 4

Slide 34

Slide 34 text

Archive & History 5

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

Thank You Some artworks are from http://openclipart.org. @ariyahidayat