From aec36735569dc4e8c6a6182af999e57b328f5ca4 Mon Sep 17 00:00:00 2001 From: Christoph Steindl <christoph.steindl@onb.ac.at> Date: Mon, 20 Jul 2020 17:17:02 +0000 Subject: [PATCH] Add gitlab-ci pipeline --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9ca7f3d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: 'tmaier/docker-compose:latest' +variables: + PYTHON_BASE_IMAGE: 'python:3.8.4-slim' + +stages: + - test + - build + +pytest: + image: $PYTHON_BASE_IMAGE + stage: test + script: + - 'python -m pip install --upgrade pip' + - 'python -m pip install -r requirements.txt' + - 'python -m pip install pytest' + - 'python -m pytest test' + +extract_data: + image: $PYTHON_BASE_IMAGE + stage: build + script: + - 'python -m pip install --upgrade pip' + - 'python -m pip install -r requirements.txt' + - 'python -m pip install ipython' + - 'ipython travelogues_extraction/script/script.py' + artifacts: + paths: + - 'travelogues_extraction/script/output/' -- GitLab