From 4d2c402de40c5558f83a8bc458f69a945a3e0667 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 10 Oct 2021 10:54:55 +0200 Subject: [PATCH 1/2] Ignore shell.nix in git tree --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f70c027..48437fd 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ backups/ env/ venv/ db.sqlite3 +shell.nix From 935d59a3b45159bf2a3c84f92dcae80bdc742131 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 10 Oct 2021 10:57:59 +0200 Subject: [PATCH 2/2] Add GitLab CI configuration --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..193562f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +stages: + - test + - quality-assurance + +# Debian Bullseye +py39-django22: + stage: test + image: debian:bullseye + before_script: + - > + apt-get update && + apt-get install --no-install-recommends -y + python3-django python3-django-crispy-forms + python3-pil python3-pip python3-setuptools tox + script: tox -e py39-django22 + +linters: + stage: quality-assurance + image: debian:bullseye + before_script: + - apt-get update && apt-get install -y tox + script: tox -e linters + + # Be nice to new contributors, but please use `tox` + allow_failure: true