Last active
September 10, 2019 06:04
-
-
Save em230418/e584ed9ab644f3b94cc0de275c31043f to your computer and use it in GitHub Desktop.
Что выводить для развертки и тестирования
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from os.path import join, abspath | |
| import sys | |
| sys.path.append("/home/noroot/maintainer-quality-tools/travis") | |
| DBNAME = "a697" | |
| VENDOR_DIR = "vendor" | |
| ADDONS_PATH_TO_TEST = join(VENDOR_DIR, "it-projects-llc/pos-addons") | |
| PREPARE_CMD = "docker-compose run dodoo -- init --new-database {DBNAME} --demo -m {MODULES}" | |
| TEST_CMD = "docker-compose run odoo -d {DBNAME} --db-filter={DBNAME} --test-enable --stop-after-init -i {MODULES}" | |
| #DIR = os.path.abspath(DIR) | |
| from getaddons import get_addons, get_modules, get_modules_info | |
| from test_server import get_test_dependencies | |
| modules_to_test = ["pos_mail"] #get_modules(ADDONS_PATH_TO_TEST) | |
| test_dependencies = get_test_dependencies( | |
| ",".join(get_addons(VENDOR_DIR, 10)), | |
| modules_to_test | |
| ) | |
| print(PREPARE_CMD.format(DBNAME=DBNAME, MODULES=",".join(test_dependencies+modules_to_test))) | |
| print("#") | |
| print(TEST_CMD.format(DBNAME=DBNAME, MODULES=",".join(modules_to_test))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment