Initial attempt to add a gitlab file

This commit is contained in:
Manuel Cortez 2022-02-19 16:06:53 -06:00
parent 3ec9312a0f
commit a338fdf2b8
No known key found for this signature in database
GPG Key ID: 262CC30FA01B5CBF

43
.gitlab-ci.yml Normal file
View File

@ -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