odoo-openupgrade-wizard/.gitlab-ci.yml
Sylvain LE GAL 82430e2d36 [TRY] FIX CI
2022-05-09 16:46:59 +02:00

57 lines
1.5 KiB
YAML

image: docker:18.09
# TODO, ne sert à rien.
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
services:
- docker:18.09-dind
stages:
- linting
- tests
black:
stage: linting
image: python
script:
# Install pipx
- pip install --user pipx
- python -m pipx ensurepath
- source ~/.profile
# Black Check
- pipx install black
- black --version
- black --check .
pytest:
stage: tests
script:
- apk add python3 python3-dev
- apk add gcc g++ libffi-dev
- apk add git
- python3 -m venv /.gitlab-ci-venv
- source /.gitlab-ci-venv/bin/activate
- pip install --upgrade pip
- pip install poetry
- poetry --version
- poetry install -v
- echo $PATH
- echo $PYTHONPATH
- poetry run pytest --version
# - poetry run pytest --cov odoo_openupgrade_wizard --verbose --verbose --exitfirst tests/cli_A_init_test.py tests/cli_B_01_get_code_test.py tests/cli_B_02_docker_build_test.py tests/cli_B_03_run_test.py tests/cli_B_05_execute_script_sql_test.py
- poetry run pytest --verbose --verbose tests/cli_A_init_test.py
# - poetry run pytest --verbose --verbose tests/cli_B_01_get_code_test.py
# - poetry run pytest --verbose --verbose tests/cli_B_02_docker_build_test.py
# - poetry run pytest --verbose --verbose tests/cli_B_03_run_test.py
# - poetry run pytest --verbose --verbose tests/cli_B_05_execute_script_sql_test.py
# tests/cli_B_04_execute_script_python_test.py
# tests/cli_B_06_upgrade_test.py