-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Install addons to test in editable mode. This will install all python dependencies | ||
# from PyPI, including OCA addons from other repos. | ||
# | ||
|
||
set -ex | ||
|
||
# pre-install build tools for faster installation with --no-build-isolation | ||
# Note that --no-build-isolation wont work if some dependencies have no wheel | ||
# available and need to be built with additional build-system requirements. | ||
# The long term solution for this perf issue is to have pip cache build environments. | ||
pip install setuptools-odoo wheel "whool ; python_version>='3.7'" | ||
|
||
oca_list_addons_to_test_as_reqs --editable >> test-requirements.txt | ||
|
||
cat test-requirements.txt | ||
|
||
# Disable git versioning strategies for performance reasons. | ||
# Disable build isolation for performance reasons. | ||
env SETUPTOOLS_ODOO_POST_VERSION_STRATEGY_OVERRIDE=none \ | ||
WHOOL_POST_VERSION_STRATEGY_OVERRIDE=none \ | ||
pip install --no-build-isolation -r test-requirements.txt | ||
|
||
pip config list | ||
|
||
pip list | ||
|
||
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 |