Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #646 from acsone/mqt-pip-install-2020
Browse files Browse the repository at this point in the history
Add opt-in mechanism to install dependencies with pip
  • Loading branch information
sbidoul committed Mar 14, 2020
2 parents 9e6d425 + 721244e commit 0ed472a
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions travis/travis_install_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,22 @@ pip install -q QUnitSuite codecov==2.0.15 coveralls==1.8.2
# Use reference .coveragerc
cp ${HOME}/maintainer-quality-tools/cfg/.coveragerc .

echo "Getting addons dependencies"
clone_oca_dependencies
clone_result=$?
if [ "$clone_result" != "0" ]; then
echo "Error cloning dependencies"
exit $clone_result
fi;
MQT_DEP=${MQT_DEP:-OCA}
if [[ "${MQT_DEP}" == "OCA" ]] ; then
echo "Getting addons dependencies"
clone_oca_dependencies
else
echo "Installing addons to test and their dependencies"
if [[ "${VERSION}" == "10.0" || "${VERSION}" == "9.0" || "${VERSION}" == "8.0" ]] ; then
pip install odoo-autodiscover
fi
for addon in $(ls setup/ -I README -I _metapackage) ; do
echo "-e ./setup/${addon}" >> test-requirements.txt
done
# use OCA wheelhouse because it is slightly fresher than PyPI
pip install --pre -e ${ODOO_PATH} -r test-requirements.txt \
--extra-index-url https://wheelhouse.odoo-community.org/oca-simple/
fi

if [[ "${WKHTMLTOPDF_VERSION}" == "" && $(which wkhtmltopdf) != "" ]]; then
echo "You have installed wkhtmltopdf but is not patched (probably) then we will overwrite it"
Expand Down

0 comments on commit 0ed472a

Please sign in to comment.