mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: allow conditional pip requirements
Before this commit, the `requirements.txt` from a specified odoo branch (master by default) was always installed in the Dockerfile's. We now allow to disable this feature to test Odoo with vanilla distributions.
This commit is contained in:
parent
6bd74c07c4
commit
785a7796fb
@ -112,10 +112,11 @@ RUN <t t-esc="values['python_version']"/> -m pip install setuptools wheel &&
|
||||
'wkhtml_url': 'https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb',
|
||||
'chrome': True,
|
||||
'phantom': False,
|
||||
'do_requirements': True,
|
||||
'python_version': 'python3',
|
||||
'deb_packages_python': 'python3 python3-dev python3-pip python3-setuptools python3-wheel python3-markdown libpq-dev',
|
||||
'deb_package_default': 'apt-transport-https build-essential ca-certificates curl ffmpeg file fonts-freefont-ttf fonts-noto-cjk gawk gnupg libldap2-dev libsasl2-dev libxslt1-dev lsb-release node-less ocrmypdf sed sudo unzip xfonts-75dpi zip zlib1g-dev',
|
||||
'additional_pip': 'coverage==4.5.4 websocket-client astroid==2.4.2 pylint==2.6.0 phonenumbers pyCrypto dbfread==2.0.7 firebase-admin==2.17.0 flamegraph pdfminer.six==20200720 pdf417gen==0.7.1'
|
||||
'additional_pip': 'coverage==4.5.4 websocket-client astroid==2.4.2 pylint==2.5.0 phonenumbers pyCrypto dbfread==2.0.7 firebase-admin==2.17.0 flamegraph pdfminer.six==20200720 pdf417gen==0.7.1'
|
||||
}"/>
|
||||
<t t-set="values" t-value="default"/>
|
||||
<t t-set="dummy" t-value="values.update(custom_values)" t-if="custom_values" />
|
||||
@ -136,7 +137,7 @@ RUN <t t-esc="values['python_version']"/> -m pip install setuptools wheel &&
|
||||
<t t-call="runbot.docker_install_psql"/>
|
||||
<t t-if="values['chrome']" t-call="runbot.docker_install_chrome"/>
|
||||
<t t-if="values['phantom']" t-call="runbot.docker_install_phantomjs"/>
|
||||
<t t-call="runbot.docker_install_odoo_python_requirements"/>
|
||||
<t t-if="values['do_requirements']" t-call="runbot.docker_install_odoo_python_requirements"/>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user