From 866e665ff92842cadf2241889f4e28db50e9bba3 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 17 May 2017 14:50:12 +0300 Subject: [PATCH] Fix brain fart in .gitlab-ci.yml --- .gitlab-ci.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05f6fb0..b938d98 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,27 +11,20 @@ variables: before_script: - python -V - pip install -r requirements.txt + - cp sikweb/ci-settings.py sikweb/settings.py + - python manage.py migrate --noinput + - python manage.py createdefaultadmin stages: - - build - test - lint -build: - stage: build - variables: - DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" - script: - - cp sikweb/ci-settings.py sikweb/settings.py - - python manage.py migrate --noinput - - python manage.py createdefaultadmin - test: stage: test variables: DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" script: - - docker-compose run web python manage.py test + - python manage.py test lint: stage: lint