Skip to content

Commit 5ad1274

Browse files
committed
More refactoring of oca_install_addons
1 parent ec902ec commit 5ad1274

File tree

2 files changed

+19
-17
lines changed

2 files changed

+19
-17
lines changed

bin/oca_install_addons

+19
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
#!/bin/bash
2+
set -ex
3+
4+
# show pip config
5+
pip config list
6+
27
oca_install_addons__deps_and_addons_path
8+
9+
# show what we have installed
10+
pip freeze
11+
12+
# Add ADDONS_DIR to addons_path.
13+
echo "addons_path=${ADDONS_PATH},${ADDONS_DIR}" >> ${ODOO_RC}
14+
cat ${ODOO_RC}
15+
16+
deps=$(oca_list_external_dependencies deb)
17+
if [ -n "$deps" ]; then
18+
apt-get update -qq
19+
# Install 'deb' external dependencies of all Odoo addons found in path.
20+
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends ${deps}
21+
fi

bin/oca_install_addons__deps_and_addons_path

-17
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,5 @@ else
3838
fi
3939
cat test-constraints.txt
4040

41-
# show pip config
42-
pip config list
43-
4441
# Install dependencies of addons to test.
4542
pip install -r test-requirements.txt -c test-constraints.txt
46-
47-
# show what we have installed
48-
pip freeze
49-
50-
# Add ADDONS_DIR to addons_path.
51-
echo "addons_path=${ADDONS_PATH},${ADDONS_DIR}" >> ${ODOO_RC}
52-
cat ${ODOO_RC}
53-
54-
deps=$(oca_list_external_dependencies deb)
55-
if [ -n "$deps" ]; then
56-
apt-get update -qq
57-
# Install 'deb' external dependencies of all Odoo addons found in path.
58-
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends ${deps}
59-
fi

0 commit comments

Comments
 (0)