erplibre/doc/RUN.md

66 lines
1 KiB
Markdown
Raw Permalink Normal View History

# Execute ERPLibre
## Start database
```bash
sudo systemctl start postgresql.service
```
## Run ERPLibre
### Method 1
Simply
```bash
./run.sh
```
With arguments
```bash
./run.sh -h
```
### Method 2
Execute your own python script:
```bash
2020-07-12 15:20:39 -04:00
./run.sh --log-level debug
```
### Update all
Great idea to run it when updating Odoo, it updates each module database.
```bash
2020-07-12 15:20:39 -04:00
./run.sh -d [DATABASE] -u all --log-level debug
```
### Update module
```bash
2020-07-12 15:20:39 -04:00
./run.sh -d [DATABASE] -u [module] --log-level debug
```
### Test
2020-07-12 15:20:39 -04:00
First execution, install you requirements, choose a new database.
```bash
./run.sh -d [DATABASE] -i [module to test] --test-enable --no-http --stop-after-init --log-level=test
2020-07-12 15:20:39 -04:00
```
Execute your test on a specific module.
2020-07-12 15:20:39 -04:00
```bash
./run.sh -d [DATABASE] -u [module to test] --test-enable --no-http --stop-after-init --log-level=test
2020-07-12 15:20:39 -04:00
```
Execute your test on a specific module with tags.
2020-07-12 15:20:39 -04:00
```bash
./run.sh -d [DATABASE] -u [module to test] --test-enable --no-http --stop-after-init --log-level=test --test-tags [module_name][tags]
```