From 5e9f023eb6d959cb913b5250121033c8f18c9606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20L=C3=A1szl=C3=B3?= <rlacko99@gmail.com> Date: Sat, 30 Jan 2021 22:58:23 +0100 Subject: [PATCH] remove testing and prescript --- .gitlab-ci.yml | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aac7963..d0faff8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- GitLab