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