Fix brain fart in .gitlab-ci.yml
This commit is contained in:
+4
-11
@@ -11,27 +11,20 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- python -V
|
- python -V
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
- cp sikweb/ci-settings.py sikweb/settings.py
|
||||||
|
- python manage.py migrate --noinput
|
||||||
|
- python manage.py createdefaultadmin
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
- lint
|
- 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:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
variables:
|
variables:
|
||||||
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
|
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
|
||||||
script:
|
script:
|
||||||
- docker-compose run web python manage.py test
|
- python manage.py test
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
|
|||||||
Reference in New Issue
Block a user