Skip to content
Snippets Groups Projects
Commit 5e9f023e authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

remove testing and prescript

parent 205f8163
No related branches found
No related tags found
No related merge requests found
Pipeline #5916 passed
......@@ -13,38 +13,41 @@ cache:
- .cache/pip
- env/
before_script:
- python -V
- python3 -m venv env
- source env/bin/activate
- pip install -r requirements/production.txt
stages:
- Build
- Test and Flake8
- Docker Build
Flake8:
stage: Build
stage: Test and Flake8
only:
- dev
- master
tags: [docker]
script:
- python -V
- python3 -m venv env
- source env/bin/activate
- pip install -r requirements/production.txt
- flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,env
Test:
stage: Build
only:
- dev
- master
tags: [docker]
variables:
DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB'
SECRET_KEY: 'secret'
AUTHSCH_KEY: 'secret'
AUTHSCH_SECRET: 'secret'
script:
- python src/manage.py test
# TODO write tests
# Test:
# stage: Test and Flake8
# only:
# - dev
# - master
# tags: [docker]
# variables:
# DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB'
# SECRET_KEY: 'secret'
# AUTHSCH_KEY: 'secret'
# AUTHSCH_SECRET: 'secret'
# script:
# - python -V
# - python3 -m venv env
# - source env/bin/activate
# - pip install -r requirements/production.txt
# - python src/manage.py test
Docker build:
stage: Docker Build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment