Edit GitLab build sequence

This commit is contained in:
Jan Tuomi
2017-05-17 14:39:28 +03:00
parent 4518228d69
commit ea0808fae0
+11 -8
View File
@@ -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