From db691ae4113c898eb3c72504495ad86b7f348ffe Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 12 Sep 2022 11:53:13 +0300 Subject: [PATCH] test stage --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8919dd3..c00f5b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - test - deploy-dev - deploy-prod @@ -15,6 +16,13 @@ build: - docker build -t mathwave/sprint-repo:battleship-nginx nginx - docker push mathwave/sprint-repo:battleship-nginx +test: + stage: test + tags: + - dev + script: + - docker run --rm mathwave/sprint-repo:battleship-back pytest tests + .deploy: before_script: - docker login -u mathwave -p $DOCKERHUB_PASSWORD