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: ...@@ -13,38 +13,41 @@ cache:
- .cache/pip - .cache/pip
- env/ - env/
before_script:
- python -V
- python3 -m venv env
- source env/bin/activate
- pip install -r requirements/production.txt
stages: stages:
- Build - Test and Flake8
- Docker Build - Docker Build
Flake8: Flake8:
stage: Build stage: Test and Flake8
only: only:
- dev - dev
- master - master
tags: [docker] tags: [docker]
script: 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 - flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations,env
Test: # TODO write tests
stage: Build # Test:
only: # stage: Test and Flake8
- dev # only:
- master # - dev
tags: [docker] # - master
variables: # tags: [docker]
DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB' # variables:
SECRET_KEY: 'secret' # DATABASE_URL: 'postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB'
AUTHSCH_KEY: 'secret' # SECRET_KEY: 'secret'
AUTHSCH_SECRET: 'secret' # AUTHSCH_KEY: 'secret'
script: # AUTHSCH_SECRET: 'secret'
- python src/manage.py test # script:
# - python -V
# - python3 -m venv env
# - source env/bin/activate
# - pip install -r requirements/production.txt
# - python src/manage.py test
Docker build: Docker build:
stage: 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