CI/CD

You need to run unit tests every time a change submitted to a given project. Describe in details how your pipeline would look like and what will be executed in each stage

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

The pipelines will have multiple stages:

  • Clone the project
  • Install test dependencies (for example, if I need tox package to run the tests, I will install it in this stage)
  • Run unit tests
  • (Optional) report results (For example an email to the users)
  • Archive the relevant logs/files