Skip to content

Commit

Permalink
Installs functional test deps if pytest_args is specified.
Browse files Browse the repository at this point in the history
Also renames TELEMETRY setting to ANALYTICS.

[noissue]
  • Loading branch information
dkliban committed Dec 5, 2022
1 parent 0d1e7a4 commit 5d18237
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/github/.ci/ansible/settings.py.j2.copy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TOKEN_SIGNATURE_ALGORITHM = "ES256"
CACHE_ENABLED = True
REDIS_HOST = "localhost"
REDIS_PORT = 6379
TELEMETRY = False
ANALYTICS = False

{% if api_root is defined %}
API_ROOT = {{ api_root | repr }}
Expand Down
4 changes: 4 additions & 0 deletions templates/github/.github/workflows/scripts/script.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ cat unittest_requirements.txt | cmd_stdin_prefix bash -c "cat > /tmp/unittest_re
cat functest_requirements.txt | cmd_stdin_prefix bash -c "cat > /tmp/functest_requirements.txt"
cmd_prefix pip3 install -r /tmp/unittest_requirements.txt
cmd_prefix pip3 install -r /tmp/functest_requirements.txt
{%- for item in additional_repos if item.pytest_args | default(false) %}
cat ../{{ item.name }}/functest_requirements.txt | cmd_stdin_prefix bash -c "cat > /tmp/{{ item.name }}_functest_requirements.txt"
cmd_prefix pip3 install -r /tmp/{{ item.name }}_functest_requirements.txt
{%- endfor %}
cmd_prefix pip3 install --upgrade ../pulp-smash

cd ../pulp-openapi-generator
Expand Down

0 comments on commit 5d18237

Please sign in to comment.