Skip to content

Commit

Permalink
Fix Required PR: for pulp-smash
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
dralley committed Dec 7, 2020
1 parent 3c70f4a commit 7d78ed7
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions templates/github/.github/workflows/scripts/before_install.sh.j2
Expand Up @@ -87,23 +87,16 @@ cd ..
{% endif %}

{% if plugin_name != 'pulpcore' %}
# When building a (release) tag, we don't need the development modules for the
# build (they will be installed as dependencies of the plugin).
if [ "${TAG_BUILD}" = "1" ]; then
{% endif %}
git clone --depth=1 https://github.com/pulp/pulp-smash.git

if [ -n "$PULP_SMASH_PR_NUMBER" ]; then
cd pulp-smash
git fetch --depth=1 origin pull/$PULP_SMASH_PR_NUMBER/head:$PULP_SMASH_PR_NUMBER
git checkout $PULP_SMASH_PR_NUMBER
cd ..
fi
git clone --depth=1 https://github.com/pulp/pulp-smash.git

# pulp-smash already got installed via test_requirements.txt
pip install --upgrade --force-reinstall ./pulp-smash
{% if plugin_name != 'pulpcore' %}
if [ -n "$PULP_SMASH_PR_NUMBER" ]; then
cd pulp-smash
git fetch --depth=1 origin pull/$PULP_SMASH_PR_NUMBER/head:$PULP_SMASH_PR_NUMBER
git checkout $PULP_SMASH_PR_NUMBER
cd ..
fi

pip install --upgrade --force-reinstall ./pulp-smash
{% endif %}

{%- for plugin in additional_plugins %}
Expand Down

0 comments on commit 7d78ed7

Please sign in to comment.