-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitlab-ci.yml
61 lines (50 loc) · 1.2 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
variables:
COMPOSE_PROJECT_NAME: "$CI_JOB_ID"
stages:
- init
- testing
before_script:
- bash setup.sh
- docker compose build
- eval $(ssh-agent -s)
- ssh-add
- docker compose run --rm odoo odoo init
after_script:
- docker compose down
- git clean -dffx --exclude=odoo/htmlcov
# Serialize the build of the image
job_init:
stage: init
script: /bin/true
# Run the tests in parallel
job_test_black:
stage: testing
script: docker compose run --rm odoo odoo black
when: on_success
job_test_eslint:
stage: testing
script: docker compose run --rm odoo odoo eslint
when: on_success
job_test_flake8:
stage: testing
script: docker compose run --rm odoo odoo flake8
when: on_success
job_test_isort:
stage: testing
script: docker compose run --rm odoo odoo isort
when: on_success
job_test_prettier:
stage: testing
script: docker compose run --rm odoo odoo prettier
when: on_success
job_test_pylint:
stage: testing
script: docker compose run --rm odoo odoo pylint
when: on_success
job_test_unittest:
stage: testing
script:
- docker compose run --rm odoo odoo update
- docker compose run --rm odoo odoo test
coverage: '/TOTAL.+?(\d+\%)/'
when: on_success