0

I am running a Gitlab pipeline on a Django + Postgres project and I am trying to build and then run my tests inside my gitlab pipeline.

I am using a custom docker image in order to use docker-compose in my pipeline.

I have 2 seperate jobs : build and test but the problem is by default jobs environments are not shared, so after my first build job I can't simple run my test with

  docker-compose exec -it app python manage.py run test

How can I achieve this without having to relauch a build in my second job for my tests ?

A. Ecrubit
  • 561
  • 6
  • 20

0 Answers0