diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2a961e25a9befd9c9336e88c560ac5fd45a79ee2..e76c38b9e24b975078e356d35a24a638cea3e136 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