From a338fdf2b8283b0ee6d4d254287cf3cc68acafb2 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 19 Feb 2022 16:06:53 -0600 Subject: [PATCH] Initial attempt to add a gitlab file --- .gitlab-ci.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..2376fd7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,43 @@ +stages: + - test + +test:mipy: + stage: test + tags: + - linux + image: python:3.7 + interruptible: true + script: + - 'pip install --upgrade mypy pytest' + - 'pip install --upgrade -r requirements.txt' + - 'mypy updater' + only: + - branches@manuelcortez/updater + - release + - tags + - schedules + +test:pytest: + stage: test + tags: + - linux + image: python:3.8 + interruptible: true + script: + - 'pip install --upgrade pytest coverage' + - 'pip install --upgrade -r requirements.txt' + - 'cd src' + - 'coverage run --source . --omit model/application.py --omit model=logger.py -m pytest --junitxml=../report.xml' + - 'coverage report' + - 'coverage xml' + - 'mv coverage.xml ..' + only: + - branches@manuelcortez/updater + - release + - tags + - schedules + artifacts: + when: always + reports: + junit: report.xml + cobertura: coverage.xml \ No newline at end of file