Skip to content
Snippets Groups Projects

:rocket: update CI to use template

Merged Vincent Hatakeyama requested to merge topic/11.0/ci-update into branch/11.0
1 file
+ 3
61
Compare changes
  • Side-by-side
  • Inline
+ 3
61
stages:
- test
- prepare
- main
black:
stage: test
image:
name: houzefaabba/python3-black
entrypoint: [/bin/busybox]
script:
- black --check --line-length 79 .
flake8:
stage: test
image:
name: xcgd/flake8:3
entrypoint: [/bin/busybox]
script:
- flake8
isort:
stage: test
image: xcgd/isort:odoo
script:
- isort --check-only --diff
get_odoo_scripts:
stage: prepare
image:
name: jamesnetherton/mercurial
entrypoint: [""]
artifacts:
paths:
- odoo_scripts
expire_in: 1h
script:
- hg clone https://orus.io/xcg/odoo_scripts
test:
stage: main
image:
name: registry.xcg.io/odoo/odoo:11.0
entrypoint: [""]
services:
- name: postgres:11-alpine
variables:
POSTGRES_DB: xbus_emitter_test
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_HOST_AUTH_METHOD: trust
DEBIAN_FRONTEND: noninteractive
script:
# Fetch system dependencies.
- apt-get -q update
- apt-get -q -y install antiword zsh
# Run tests.
- ./odoo_scripts/do_tests postgres odoo
- python3-coverage report -m
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
include:
- project: xcg/ci-templates
file: /odoo/11.0/gitlab-ci.yaml
Loading