Edit GitLab build sequence
This commit is contained in:
+11
-8
@@ -12,15 +12,24 @@ before_script:
|
||||
|
||||
stages:
|
||||
- build
|
||||
- lint
|
||||
- test
|
||||
- lint
|
||||
|
||||
build:
|
||||
stage: build
|
||||
variables:
|
||||
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
|
||||
script:
|
||||
- sh ./scripts/autoinstall.sh
|
||||
- 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
|
||||
|
||||
lint:
|
||||
stage: lint
|
||||
@@ -29,9 +38,3 @@ lint:
|
||||
script:
|
||||
- pep8 --count && eslint .
|
||||
|
||||
test:
|
||||
stage: test
|
||||
variables:
|
||||
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
|
||||
script:
|
||||
- docker-compose run web python manage.py test --settings sikweb.ci-settings
|
||||
|
||||
Reference in New Issue
Block a user