From 7ad5191361107bf40804ed3b748bdb3f2158a660 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Mon, 20 Nov 2017 14:33:14 +0100 Subject: [PATCH] chore: run ci --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e584e3e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: nikolaik/python-nodejs:latest + +variables: + PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache" + +cache: + paths: + - "$CI_PROJECT_DIR/pip-cache" + key: "$CI_PROJECT_ID" + +before_script: + - pip install -r requirements.txt + - pip install coverage + +test: + script: + - coverage run --source=dpdapi --omit=dpdapi/migrations/* manage.py test -v2 + - coverage report + coverage: '/TOTAL.+ ([0-9]{1,3}%)/'