X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=81f681bcc0b0829023b76720682f96c25812ea75;hb=refs%2Fchanges%2F80%2F8380%2F3;hp=4011822f6bb8d4222c046ce3927f859e6728c9de;hpb=b2f5578375c16a3fec8aecfc8e58689f24b98fda;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index 4011822f..81f681bc 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -17,6 +17,17 @@ jobs: - github-tox-verify +########## +# Macros # +########## + +- builder: + name: lf-infra-tox-install + builders: + - inject: + properties-content: 'PYTHON_VERSION={python-version}' + - shell: !include-raw-escape: ../shell/tox-install.sh + ############## # Tox Verify # ############## @@ -32,6 +43,7 @@ build-days-to-keep: 7 build-timeout: 10 git-url: '$GIT_URL/$GERRIT_PROJECT' + python-version: python3 stream: master submodule-recursive: true tox-dir: '' @@ -70,9 +82,9 @@ # Without running the install first the run in the publisher will fail # due to missing lftools because it gets installed into a tox venv. - ../shell/lftools-install.sh - - shell: !include-raw-escape: - - ../shell/tox-install.sh - - ../shell/tox-run.sh + - lf-infra-tox-install: + python-version: '{python-version}' + - shell: !include-raw-escape: ../shell/tox-run.sh publishers: - lf-infra-publish