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..4bc728bef750a4a44a00c4c16b7b7af6222f13c1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: python + +stages: + - install + - test + +install: + stage: install + script: + - pip install virtualenv + - cd server + - py -m venv env + - ./env/Scripts/activate + - pip install -r requirements.txt + +test: + stage: test + script: + - cd server + - pytest --cov app test/