Rename gitlab ci jobs and stages

This commit is contained in:
Gabriel Augendre 2021-01-03 22:09:00 +01:00
parent 4f90723092
commit 98e5f603ec
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -1,7 +1,7 @@
stages:
- build
- test
- publish
- build and publish
- deploy
variables:
@ -32,7 +32,7 @@ variables:
- docker push $IMAGE
- docker push $DEPS
build-tests:
build for tests:
<<: *build
stage: build
variables:
@ -45,28 +45,28 @@ build-tests:
stage: test
image: $IMAGE_TESTS
unit_tests:
unit tests:
<<: *tests
script:
- cd /app
- python -m pytest
pre_commit:
pre-commit:
stage: test
image: $PRE_COMMIT_IMAGE
script:
- pre-commit run --all-files --color always --show-diff-on-failure
needs: []
missing_migrations:
missing migrations:
<<: *tests
script:
- cd /app
- python manage.py makemigrations --check
publish:
build and publish latest:
<<: *build
stage: publish
stage: build and publish
variables:
POETRY_OPTIONS: "--no-dev"
before_script: