diff --git a/.gitignore b/.gitignore index 0d14ca4dd081d5d9be6e064a717f862bab407cb1..9f28e5cb447949081556e27b2b1702613de93bbc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ *.db */env -*.coverage \ No newline at end of file +*.coverage +.pytest_cache \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..5551b189892e5492cf729ec3fb5f3517efd85de5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: python + +stages: + - install + - test + +install: + stage: install + script: + - pip install virtualenv + - cd server + - python -m venv env + - source env/bin/activate + - pip install -r requirements.txt + +test: + stage: test + script: + - cd server + - pytest --cov app test/