8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-06-02 07:52:23 +00:00
re2o/.gitlab-ci.yml
2024-03-10 11:06:29 +00:00

33 lines
769 B
YAML

---
variables:
DOCKER_TLS_CERTDIR: "/certs"
stages:
- lint
- build
build:
image: docker:24.0.5
services:
- docker:24.0.5-dind
stage: build
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
SUPERUSER_LOGIN: admin
SUPERUSER_PASS: admin
SUPERUSER_EMAIL: admin@example.net
ENV: dev
script:
# - docker build -t re2o . --target=postgres
- 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