From 66aeb2a96b0fe1ee957b6576cb7daf0fae96cff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pernille=20N=C3=B8dtvedt=20Welle-Watne?= <1417-pernilnw@users.noreply.gitlab.stud.idi.ntnu.no> Date: Fri, 5 Mar 2021 10:46:55 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a961e25..e76c38b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,18 +3,18 @@ variables: HEROKU_APP_NAME_FRONTEND: tdt4242-base-secfit stages: -# - test + - test - deploy -#test: -# image: python:3 -# stage: test -# script: +test: + image: python:3 + stage: test + script: # this configures Django application to use attached postgres database that is run on `postgres` host -# - cd backend/secfit -# - apt-get update -qy -# - pip install -r requirements.txt -# - python manage.py test + - cd backend/secfit + - apt-get update -qy + - pip install -r requirements.txt + - python manage.py test deploy: image: ruby @@ -26,6 +26,7 @@ deploy: - gem install dpl - dpl --provider=heroku --app=$HEROKU_APP_NAME_BACKEND --api-key=$HEROKU_AUTH_TOKEN - dpl --provider=heroku --app=$HEROKU_APP_NAME_FRONTEND --api-key=$HEROKU_AUTH_TOKEN - + only: + - master -- GitLab