Skip to content

Commit

Permalink
Merge pull request #63 from sbidoul/more-ref-oca_install_addons
Browse files Browse the repository at this point in the history
More refactoring of oca_install_addons
  • Loading branch information
sbidoul authored Jan 19, 2024
2 parents ec902ec + 5ad1274 commit 10fbf92
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
19 changes: 19 additions & 0 deletions bin/oca_install_addons
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
#!/bin/bash
set -ex

# show pip config
pip config list

oca_install_addons__deps_and_addons_path

# show what we have installed
pip freeze

# Add ADDONS_DIR to addons_path.
echo "addons_path=${ADDONS_PATH},${ADDONS_DIR}" >> ${ODOO_RC}
cat ${ODOO_RC}

deps=$(oca_list_external_dependencies deb)
if [ -n "$deps" ]; then
apt-get update -qq
# Install 'deb' external dependencies of all Odoo addons found in path.
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends ${deps}
fi
17 changes: 0 additions & 17 deletions bin/oca_install_addons__deps_and_addons_path
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,5 @@ else
fi
cat test-constraints.txt

# show pip config
pip config list

# Install dependencies of addons to test.
pip install -r test-requirements.txt -c test-constraints.txt

# show what we have installed
pip freeze

# Add ADDONS_DIR to addons_path.
echo "addons_path=${ADDONS_PATH},${ADDONS_DIR}" >> ${ODOO_RC}
cat ${ODOO_RC}

deps=$(oca_list_external_dependencies deb)
if [ -n "$deps" ]; then
apt-get update -qq
# Install 'deb' external dependencies of all Odoo addons found in path.
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends ${deps}
fi

0 comments on commit 10fbf92

Please sign in to comment.