diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c641db0a39bac00d3ca37d32d72cb0ec7baccce8..c685f8bdc2715c432ff8213afaab6fcba2cea08c 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"