[release-monitoring] Add npm to build config - staging
Javascript and CSS dependencies for Anitya are now managed by npm. Let's reflect this in Anitya buildconfig. Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
ed39dbd82b
commit
31c1c7bca7
1 changed files with 10 additions and 0 deletions
|
@ -21,6 +21,9 @@ items:
|
||||||
httpd \
|
httpd \
|
||||||
graphviz \
|
graphviz \
|
||||||
fedora-messaging \
|
fedora-messaging \
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
npm \
|
||||||
|
{% endif %}
|
||||||
poetry \
|
poetry \
|
||||||
python3-alembic \
|
python3-alembic \
|
||||||
python3-beautifulsoup4 \
|
python3-beautifulsoup4 \
|
||||||
|
@ -67,9 +70,16 @@ items:
|
||||||
popd && \
|
popd && \
|
||||||
# Uninstall the existing anitya installation first
|
# Uninstall the existing anitya installation first
|
||||||
pip-3 uninstall -y anitya && \
|
pip-3 uninstall -y anitya && \
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
# Install javascript dependencies
|
||||||
|
pushd static && \
|
||||||
|
npm install && \
|
||||||
|
popd && \
|
||||||
|
{% else %}
|
||||||
# Move bootstrap to correct folder
|
# Move bootstrap to correct folder
|
||||||
rm -f anitya/static/bootstrap && \
|
rm -f anitya/static/bootstrap && \
|
||||||
mv anitya/static/bootstrap-3.3.4-fedora anitya/static/bootstrap && \
|
mv anitya/static/bootstrap-3.3.4-fedora anitya/static/bootstrap && \
|
||||||
|
{% endif %}
|
||||||
poetry build && \
|
poetry build && \
|
||||||
pip-3 install dist/*.whl && \
|
pip-3 install dist/*.whl && \
|
||||||
popd && \
|
popd && \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue