File tree 2 files changed +25
-4
lines changed
2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,10 @@ Build args:
68
68
69
69
Tests are written using [ pytest] ( https://pytest.org ) in the ` tests ` directory.
70
70
71
- You can run them using the ` runtests.sh ` script inside the container, like this:
71
+ You can run them using the ` runtests.sh ` script inside the container.
72
+
73
+ In the test directory, there is a ` docker-compose.yml ` to help run the tests.
74
+ Tune it to your liking, then run:
75
+
76
+ ` docker compose run --build test ./runtests.sh -v `
72
77
73
- ``` console
74
- docker run -v $PWD/tests:/mnt/tests ghcr.io/oca/oca-ci/py3.8-odoo14.0:latest /mnt/tests/runtests.sh -v
75
- ```
Original file line number Diff line number Diff line change
1
+ services :
2
+ test :
3
+ build :
4
+ context : ..
5
+ args :
6
+ codename : jammy
7
+ python_version : " 3.10"
8
+ odoo_version : " 16.0"
9
+ volumes :
10
+ - .:/mnt/tests
11
+ working_dir : /mnt/tests
12
+ depends_on :
13
+ - postgres
14
+ postgres :
15
+ image : postgres
16
+ environment :
17
+ POSTGRES_USER : odoo
18
+ POSTGRES_PASSWORD : odoo
19
+ POSTGRES_DB : odoo
You can’t perform that action at this time.
0 commit comments