Skip to content
Snippets Groups Projects
Houzefa Abbasbhay's avatar
Houzefa Abbasbhay authored
In the loop:
- Rename the "module" variable to "module_path".
- Set up a new "module" variable that contains nothing but the actual module
  name.
b5229d55
History
Name Last commit Last update
.hgignore
HISTORY.rst
LICENSE
README.rst
VERSION
conf2reST.py
create_archive
create_documentation
do_tests
docker_build
docker_build_clean
docker_build_copy
odoo_versions.csv
run_tests
setup.cfg
start
update_duplicate_sources

odoo scripts

start

This script can be used to start odoo.

It need to be run on a machine with all the odoo requirements installed, either system-wide or in a virtual environment (which need to be activated).

Its arguments are passed to openerp-server.

do_tests

This script create a database, install modules and run the tests on those modules and print the result.

It need to be run on a machine with all the odoo requirements installed, either system-wide or in a virtual environment (which need to be activated). A postgresql server is also needed.

It takes two optionnal arguments, the host of the postgresql server, and the user for this base (which need database creation rights). If a user is provided, you will need to have a .pgpass with the password if it is not the one in conf/dev/odoo.conf.

The script call run_tests.

run_tests

This script run the tests on a database.

It need to be run on a machine with all the odoo requirements installed, either system-wide or in a virtual environment (which need to be activated). A postgresql server is also needed.

The name of the database is the same as do_tests or can be provided.

The script call start.

conf2reST.py

This script is used to produce a reST file from setup.cfg, the Dockerfile and the .hgconf/nest.yaml file.

create_archive

zsh script to create a tar.xz file containing all sources.

update_duplicate_sources

This script will update a metaproject that only contain the sources of the one it is launched from.

It expect the configuration file (setup.cfg) to have the following keys:

  • modules: list of directories and files to include (also used by another script)
  • dependencies: list of directories and files to include (also used by another script)
  • other_sources: list of directories and files to include (only used by this script, used for README, ReleaseNotes, script directories, etc.)

No change are made to the name of the directories/files included.