2017-11-11 21:34:11 +00:00
|
|
|
---
|
2024-03-08 09:21:00 +00:00
|
|
|
variables:
|
|
|
|
DOCKER_TLS_CERTDIR: "/certs"
|
|
|
|
|
2017-11-11 21:34:11 +00:00
|
|
|
stages:
|
|
|
|
- lint
|
2024-03-08 09:21:00 +00:00
|
|
|
- build
|
2024-03-10 11:21:29 +00:00
|
|
|
- test
|
2017-11-11 21:34:11 +00:00
|
|
|
|
2024-03-08 09:21:00 +00:00
|
|
|
build:
|
|
|
|
image: docker:24.0.5
|
|
|
|
services:
|
|
|
|
- docker:24.0.5-dind
|
2024-03-10 11:21:29 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_COMMIT_BRANCH == "dev"'
|
2024-03-08 09:21:00 +00:00
|
|
|
stage: build
|
2017-11-11 21:34:11 +00:00
|
|
|
script:
|
2024-03-10 11:21:29 +00:00
|
|
|
- docker compose build
|
|
|
|
|
|
|
|
test:
|
|
|
|
image: docker:24.0.5
|
|
|
|
services:
|
|
|
|
- docker:24.0.5-dind
|
|
|
|
stage: test
|
|
|
|
script:
|
2024-03-10 11:06:29 +00:00
|
|
|
- docker compose -f docker-compose-dev.yml run --env RUN_TESTS=yes re2o
|
2017-11-11 21:34:11 +00:00
|
|
|
|
2024-03-08 09:21:00 +00:00
|
|
|
lint:
|
|
|
|
image: python:3
|
|
|
|
stage: lint
|
|
|
|
script:
|
|
|
|
- pip install poetry
|
|
|
|
- poetry install --extras "lint"
|
|
|
|
- poetry run pylint --load-plugins pylint_django cotisations machines re2o logs topologie preferences search users || if [ $? -ne 1 ]; then exit 0; else exit 1; fi
|