mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
34 lines
689 B
YAML
34 lines
689 B
YAML
---
|
|
variables:
|
|
DOCKER_TLS_CERTDIR: "/certs"
|
|
|
|
stages:
|
|
- lint
|
|
- build
|
|
- test
|
|
|
|
build:
|
|
image: docker:24.0.5
|
|
services:
|
|
- docker:24.0.5-dind
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "dev"'
|
|
stage: build
|
|
script:
|
|
- docker compose build
|
|
|
|
test:
|
|
image: docker:24.0.5
|
|
services:
|
|
- docker:24.0.5-dind
|
|
stage: test
|
|
script:
|
|
- docker compose -f docker-compose-dev.yml run --env RUN_TESTS=yes re2o
|
|
|
|
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
|