Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ee6d8bdf authored by PAPERMAN Charles's avatar PAPERMAN Charles
Browse files

integrate doctest to CI

parent 86268171
Branches
No related tags found
1 merge request!78integrate doctest to CI
......@@ -13,6 +13,8 @@ build:
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- docker push "$CI_REGISTRY_IMAGE/qbcontainer"
lint:
stage: test
tags:
......@@ -32,11 +34,23 @@ type-checking:
- python3 -m mypy --install-types --non-interactive querybuilder/
test:
services:
- postgres
variables:
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
image: postgres
script:
stage: test
tags:
- ci.inria.fr
- medium
image: "$CI_REGISTRY_IMAGE/qbcontainer"
script:
- pytest --doctest-modules --cov=querybuilder querybuilder
- export PGPASSWORD=$POSTGRES_PASSWORD
- export PGHOST="postgres"
- export PGDATABASE=$POSTGRES_DB
- export PGUSER=$POSTGRES_USER
- pytest --doctest-modules --cov=querybuilder
coverage: '/TOTAL.*\s+(\d+%)$/'
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment