Add Test job
This commit is contained in:
parent
67e16d8329
commit
124f0300cf
@ -1,5 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
buiild job:
|
buiild job:
|
||||||
stage: build
|
stage: build
|
||||||
@ -13,4 +14,17 @@ buiild job:
|
|||||||
- pip3 install --upgrade setuptools
|
- pip3 install --upgrade setuptools
|
||||||
- pip3 install Flask gunicorn pytest pytest-cov
|
- pip3 install Flask gunicorn pytest pytest-cov
|
||||||
- pip3 install pendulum
|
- 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
|
- pytest tests --cov --cov-report term --cov-report html
|
Loading…
Reference in New Issue
Block a user