7 # Python projects typically use tox to run testing.
8 name: '{project-name}-tox-verify-{stream}'
11 # branch: git branch (default: master)
12 # tox-dir: directory containing the project's tox.ini relative to
13 # the workspace. Empty works if tox.ini is at project root.
15 project-type: freestyle
19 ######################
20 # Default parameters #
21 ######################
25 git-url: '$GIT_URL/$GERRIT_PROJECT'
26 submodule-recursive: true
35 - lf-infra-properties:
39 - lf-infra-parameters:
42 - lf-infra-tox-parameters:
44 tox-envs: '{tox-envs}'
47 - lf-infra-gerrit-scm:
48 jenkins-ssh-credential: '{jenkins-ssh-credential}'
50 refspec: '$GERRIT_REFSPEC'
51 branch: '$GERRIT_BRANCH'
52 submodule-recursive: '{submodule-recursive}'
53 choosing-strategy: gerrit
57 build-timeout: '{build-timeout}'
58 jenkins-ssh-credential: '{jenkins-ssh-credential}'
62 server-name: '{gerrit-server-name}'
64 - patchset-created-event:
66 exclude-trivial-rebase: false
67 exclude-no-code-change: false
68 - draft-published-event
69 - comment-added-contains-event:
70 comment-contains-value: recheck$
72 - project-compare-type: ANT
73 project-pattern: '{project}'
75 - branch-compare-type: ANT
76 branch-pattern: '**/{branch}'
79 - shell: !include-raw-escape:
80 # Workaround issue where the tox run later breaks the lftools virtualenv.
81 # Without running the install first the run in the publisher will fail
82 # due to missing lftools because it gets installed into a tox venv.
83 - ../shell/lftools-install.sh
84 - shell: !include-raw-escape:
85 - ../shell/tox-install.sh