-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
38 lines (36 loc) · 1 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
stages:
- docker
- test
docker-ci-build:
stage: docker
tags:
- shell
variables:
BUILD_OPTS: "--network=internal_bridge --force-rm --no-cache --build-arg CI_JOB_TOKEN=${CI_JOB_TOKEN} --build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME}"
script:
- cd ci/Docker
- docker build ${BUILD_OPTS} crispr_form_odoo_ci -t crispr_form_odoo_ci:$CI_PIPELINE_ID
integration-tests:
stage: test
tags:
- docker
image:
name: crispr_form_odoo_ci:$CI_PIPELINE_ID
variables:
POSTGRES_DB: crispr
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_HOST_AUTH_METHOD: trust
PYTEST_PLUGINS: "odoo"
services:
- name: article714/postgresql-container:11-latest
alias: db_postgresql
script:
- odoo --logfile=ci/odoo_build.log --stop-after-init --without-demo=all --database=crispr -c $ODOO_RC -i base,web,crispr_form_test
- cd /home/odoo/addons/crispr-form/modules
- pytest
artifacts:
paths:
- ci/odoo_build.log
expire_in: 3 days
when: always