8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 22:22:26 +00:00
re2o/.gitlab-ci.yml

35 lines
944 B
YAML
Raw Normal View History

2017-11-11 21:34:11 +00:00
---
variables:
DOCKER_TLS_CERTDIR: "/certs"
2017-11-11 21:34:11 +00:00
stages:
- lint
- build
2017-11-11 21:34:11 +00:00
build:
image: docker:24.0.5
services:
- docker:24.0.5-dind
stage: build
2017-11-11 21:34:11 +00:00
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
SUPERUSER_LOGIN: admin
SUPERUSER_PASS: admin
SUPERUSER_EMAIL: admin@example.net
ENV: dev
2017-11-11 21:34:11 +00:00
script:
# - docker build -t re2o . --target=postgres
- cp -n cotisations/templates/cotisations/invoice.html templates/default_invoice.html
- cp -n cotisations/templates/cotisations/voucher.html templates/default_voucher.html
- docker compose run --build re2o poetry run python manage.py test
2017-11-11 21:34:11 +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