Something went wrong on our end
-
Vincent Hatakeyama authoredVincent Hatakeyama authored
.gitlab-ci.yml 5.09 KiB
include:
- file: python3-lint-needs.gitlab-ci.yaml
project: xcg/ci-templates
- file: docker-build.gitlab-ci.yaml
project: xcg/ci-templates
- file: deploy-doc.gitlab-ci.yaml
project: xcg/ci-templates
variables:
HTML_DOC_SOURCES: doc/_build/html
DOCKER_IMAGE: quay.orus.io/xcgd/odoo_scripts
# do not use $TEMP_IMAGE_BASENAME, it will not be correctly replaced by GitLab
TEMP_IMAGE: quay.orus.io/xcgd/odoo_scripts:hg-${CI_COMMIT_HG_SHA}
# build a temporary image for doc and tests
build-docker-image:
needs: []
stage: build
variables:
TAG_COMMIT_REF_SLUG: "no"
TAG_COMMIT_SHA: "yes"
TAG_BRANCH: "no"
pylint:
needs:
- job: build-docker-image
image: $TEMP_IMAGE
variables:
PYLINT_FILES: odoo_scripts doc tests
unittest:
needs: []
stage: test
image: fkrull/multi-python
script:
- tox --workdir=.cache/tox --parallel all -e py36,py37,py38,py39,coverage-report,coverage-xml
artifacts:
when: always
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
junit: report.py36.xml
paths:
- report.py36.xml
coverage: "/TOTAL.+ ([0-9]{1,3}%)/"
cache:
paths:
- .cache
variables:
PIP_CACHE_DIR: $CI_PROJECT_DIR/.cache/pip
unittest-py310:
extends: unittest
image: python:3.10-alpine
script:
- apk add git
- python3 -m pip install tox
- tox --workdir=.cache/tox -e py310,coverage-report,coverage-xml
import_jsonrpc_odoo11_test:
stage: test
needs: []
image:
name: quay.orus.io/odoo/odoo:11.0-bionic
entrypoint: [""]
services:
- name: postgres:12-alpine
command: ["-c", "fsync=off"]
alias: db