1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 07:02:22 +00:00

Add gitlab ci file (warning: errors are coming)

This commit is contained in:
Yohann D'ANELLO 2020-12-28 17:28:51 +01:00
parent 18b4fa81d3
commit ad1337209d
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 30 additions and 4 deletions

7
.gitignore vendored
View File

@ -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/

27
.gitlab-ci.yml Normal file
View File

@ -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