From bcbc0666e4a5b3e876bb140eb466046b47a794af Mon Sep 17 00:00:00 2001
From: rlacko <rlacko99@gmail.com>
Date: Wed, 8 Apr 2020 19:39:34 +0200
Subject: [PATCH] faster pipeline

---
 .gitlab-ci.yml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c641db0..c685f8b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,20 +13,21 @@ cache:
     - venv/
 
 before_script:
-  - python -V                              
+  - python -V      
+  - python3 -m venv venv
+  - source venv/bin/activate  
   - pip install -r requirements/production.txt
 
 stages:
   - Build
-  - Test
 
-flake8:
+Flake8:
   stage: Build
   script:
-    - flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations
+    - flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,venv
 
-test:
-  stage: Test
+Test:
+  stage: Build
   variables:
     DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
     SECRET_KEY: "secret"
-- 
GitLab