cycles/.gitlab-ci.yml
2022-04-15 14:45:04 -04:00

34 lines
865 B
YAML

stages:
- build
- test
buiild job:
stage: build
image: python:3-buster
script:
- export PYTHONPATH=.
- export FLASK_APP=period
- apt-get update -qy
- apt-get install -y python3-dev python3-pip
- pip3 install --upgrade pip
- pip3 install --upgrade setuptools
- pip3 install Flask gunicorn pytest pytest-cov
- pip3 install pendulum
test job:
stage: test
image: python:3-buster
script:
- export PYTHONPATH=.
- export FLASK_APP=period
- apt-get update -qy
- apt-get install -y python3-dev python3-pip
- pip3 install --upgrade pip
- pip3 install --upgrade setuptools
- pip3 install Flask gunicorn pytest pytest-cov
- pip3 install pendulum
- pytest tests --cov --cov-report term --cov-report html --junitxml=report.xml
artifacts:
when: always
reports:
junit: report.xml