From 7acb934dbf512fad3c1db912cd3e8a24bc906ca2 Mon Sep 17 00:00:00 2001 From: AcidUK Date: Thu, 4 Jul 2019 16:29:14 +0000 Subject: [PATCH 1/3] Added .gitlab-ci.yml --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..93d249b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +stages: + - test + +test: + stage: test + script: + - apt-get update -qy + - apt-get install -y python3-dev python3-pip + - pip install -r requirements.txt + - pytest tests --cov --cov-report term --cov-report html \ No newline at end of file From fbe37806a8eac140221294aeb71b0cac58d6abe4 Mon Sep 17 00:00:00 2001 From: AcidUK Date: Thu, 4 Jul 2019 17:55:45 +0000 Subject: [PATCH 2/3] Update .gitlab-ci.yml --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 93d249b..8e78407 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,13 @@ +image: "python:3.7" + +before_script: + - python --version + - pip install -r requirements.txt + stages: - test test: stage: test script: - - apt-get update -qy - - apt-get install -y python3-dev python3-pip - - pip install -r requirements.txt - pytest tests --cov --cov-report term --cov-report html \ No newline at end of file From 924adb4ffbf6e0951c1108c67d1e9b9dbad6bf0a Mon Sep 17 00:00:00 2001 From: AcidUK Date: Thu, 4 Jul 2019 17:58:03 +0000 Subject: [PATCH 3/3] Updated tests --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e78407..d829eaa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,4 +10,4 @@ stages: test: stage: test script: - - pytest tests --cov --cov-report term --cov-report html \ No newline at end of file + - pytest tests \ No newline at end of file