Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
4ab1b539
Commit
4ab1b539
authored
4 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
add more tests, and including some on odoo 13
parent
274f3bac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-2
29 additions, 2 deletions
.gitlab-ci.yml
with
29 additions
and
2 deletions
.gitlab-ci.yml
+
29
−
2
View file @
4ab1b539
...
@@ -23,10 +23,10 @@
...
@@ -23,10 +23,10 @@
name
:
registry.xcg.io/odoo/odoo:11.0-bionic
name
:
registry.xcg.io/odoo/odoo:11.0-bionic
entrypoint
:
[
"
"
]
entrypoint
:
[
"
"
]
services
:
services
:
-
name
:
postgres:1
1
-alpine
-
name
:
postgres:1
2
-alpine
command
:
[
"
-c"
,
"
fsync=off"
]
command
:
[
"
-c"
,
"
fsync=off"
]
alias
:
db
alias
:
db
variables
:
variables
:
POSTGRES_USER
:
odoo
POSTGRES_USER
:
odoo
POSTGRES_HOST_AUTH_METHOD
:
trust
POSTGRES_HOST_AUTH_METHOD
:
trust
ODOO_ADDONS_PATH
:
"
"
ODOO_ADDONS_PATH
:
"
"
...
@@ -27,9 +27,10 @@
...
@@ -27,9 +27,10 @@
command
:
[
"
-c"
,
"
fsync=off"
]
command
:
[
"
-c"
,
"
fsync=off"
]
alias
:
db
alias
:
db
variables
:
variables
:
POSTGRES_USER
:
odoo
POSTGRES_USER
:
odoo
POSTGRES_HOST_AUTH_METHOD
:
trust
POSTGRES_HOST_AUTH_METHOD
:
trust
ODOO_ADDONS_PATH
:
"
"
ODOO_ADDONS_PATH
:
"
"
ODOO_TYPE
:
odoo11
before_script
:
before_script
:
-
pip3 install $CI_PROJECT_DIR --disable-pip-version-check --no-cache-dir
-
pip3 install $CI_PROJECT_DIR --disable-pip-version-check --no-cache-dir
script
:
script
:
...
@@ -33,7 +34,7 @@
...
@@ -33,7 +34,7 @@
before_script
:
before_script
:
-
pip3 install $CI_PROJECT_DIR --disable-pip-version-check --no-cache-dir
-
pip3 install $CI_PROJECT_DIR --disable-pip-version-check --no-cache-dir
script
:
script
:
-
sudo -
u odoo env ODOO_TYPE=
odoo
11
$CI_PROJECT_DIR/start --db_host=db -d test_setup --max-cron-threads=0 --without-demo=all --data-dir /var/lib/odoo --init base &
-
sudo -
-preserve-env -u
odoo $CI_PROJECT_DIR/start --db_host=db -d test_setup --max-cron-threads=0 --without-demo=all --data-dir /var/lib/odoo --init base &
# wait for odoo to install the modules
# wait for odoo to install the modules
-
sleep
35
-
sleep
35
# then test the setup files
# then test the setup files
...
@@ -42,6 +43,32 @@
...
@@ -42,6 +43,32 @@
-
import_jsonrpc -v --host localhost --password admin -d test_setup --protocol jsonrpc -p 8069 --directory tests/import_emptyyaml --delimiter ";"
-
import_jsonrpc -v --host localhost --password admin -d test_setup --protocol jsonrpc -p 8069 --directory tests/import_emptyyaml --delimiter ";"
-
import_sql -vv --host postgres --user odoo --database test_setup --directory tests/import_sql
-
import_sql -vv --host postgres --user odoo --database test_setup --directory tests/import_sql
import_base_import_odoo11_test
:
extends
:
import_jsonrpc_odoo11_test
script
:
-
sudo --preserve-env -u odoo $CI_PROJECT_DIR/start --db_host=db -d test_setup --max-cron-threads=0 --without-demo=all --data-dir /var/lib/odoo --init base &
# wait for odoo to install the modules
-
sleep
35
# then test the setup files
-
import_base_import -v --host localhost --password admin -d test_setup --protocol jsonrpc -p 8069 --directory tests/import
-
import_sql -vv --host postgres --user odoo --database test_setup --directory tests/import_sql
import_jsonrpc_odoo13_test
:
extends
:
import_jsonrpc_odoo11_test
image
:
name
:
registry.xcg.io/odoo/odoo:13.0
entrypoint
:
[
"
"
]
variables
:
ODOO_TYPE
:
odoo13
import_base_import_odoo13_test
:
extends
:
import_base_import_odoo11_test
image
:
name
:
registry.xcg.io/odoo/odoo:13.0
entrypoint
:
[
"
"
]
variables
:
ODOO_TYPE
:
odoo13
build-documentation
:
build-documentation
:
stage
:
build
stage
:
build
image
:
python:3-alpine
image
:
python:3-alpine
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment