Skip to content
Snippets Groups Projects
Commit 22e8d2670b9d authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:rocket: run tests

parent 44e3b3ee04bb
No related branches found
No related tags found
No related merge requests found
Pipeline #3173 passed
stages:
- test
- prepare
- main
black:
stage: test
image:
name: houzefaabba/python3-black
entrypoint: [/bin/busybox]
script:
- black --check -l79 .
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: xcgd/confman:evolve
artifacts:
paths:
- odoo_scripts
expire_in: 1h
script:
- hg clone https://orus.io/xcg/odoo_scripts
# change to coverage topic to test
- cd odoo_scripts
- hg update coverage-in-tests
test:
stage: main
image:
name: registry.xcg.io/odoo/odoo:11.0-bionic
entrypoint: [""]
services:
- name: postgres:11-alpine
cache:
paths:
- .cache
variables:
POSTGRES_DB: test
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_HOST_AUTH_METHOD: trust
DEBIAN_FRONTEND: noninteractive
before_script:
- mkdir -p $CI_PROJECT_DIR/.cache/apt/archives/partial
# Fetch odoo_scripts dependencies for do_tests
- apt-get -q -o dir::cache::archives="$CI_PROJECT_DIR/.cache/apt" update
- apt-get -q -y -o dir::cache::archives="$CI_PROJECT_DIR/.cache/apt" install zsh
script:
# Run tests
- ./odoo_scripts/do_tests postgres odoo
- python3-coverage report -m
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
[odoo_scripts]
modules = ../document_attachment
other_sources =
odoo_type = odoo11
module_list = document_attachment
module_list_tests = document_attachment
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment