diff --git a/.gitignore b/.gitignore index 29e51da..1299f3e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,3 @@ -# Server config files -nginx_note.conf - # Byte-compiled / optimized / DLL files dist build @@ -38,8 +35,10 @@ coverage secrets.py *.log media/ - # Virtualenv env/ venv/ db.sqlite3 + +# Don't git index +whoosh_index/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..863abd5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +stages: + - test + - quality-assurance + +py38: + stage: test + image: python:3.8-alpine + before_script: + - apk add --no-cache libmagic + - pip install tox --no-cache-dir + script: tox -e py38 + +py39: + stage: test + image: python:3.9-alpine + before_script: + - apk add --no-cache gcc libmagic + - pip install tox --no-cache-dir + script: tox -e py39 + +linters: + stage: quality-assurance + image: python:3-alpine + before_script: + - pip install tox --no-cache-dir + script: tox -e linters + allow_failure: true