builders:
- multijob:
- name: ansible-lint
+ name: Engine Lint
condition: ALWAYS
+ execution-type: PARALLEL
projects:
- name: 'engine-verify-ansible-lint-{stream}'
current-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- predefined-parameters: |
- GERRIT_PROJECT=$GERRIT_PROJECT
- GERRIT_BRANCH=$GERRIT_BRANCH
- GERRIT_REFSPEC=$GERRIT_REFSPEC
- GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
- GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
- VERBOSITY=$VERBOSITY
- - multijob:
- name: shellcheck
- condition: ALWAYS
- projects:
- name: 'engine-verify-shellcheck-{stream}'
current-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- predefined-parameters: |
- GERRIT_PROJECT=$GERRIT_PROJECT
- GERRIT_BRANCH=$GERRIT_BRANCH
- GERRIT_REFSPEC=$GERRIT_REFSPEC
- GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
- GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
- VERBOSITY=$VERBOSITY
- - multijob:
- name: yamllint
- condition: ALWAYS
- projects:
- name: 'engine-verify-yamllint-{stream}'
current-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- predefined-parameters: |
- GERRIT_PROJECT=$GERRIT_PROJECT
- GERRIT_BRANCH=$GERRIT_BRANCH
- GERRIT_REFSPEC=$GERRIT_REFSPEC
- GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
- GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
- VERBOSITY=$VERBOSITY
- - multijob:
- name: docs
- condition: ALWAYS
- projects:
- name: 'engine-verify-docs-{stream}'
current-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- predefined-parameters: |
- GERRIT_PROJECT=$GERRIT_PROJECT
- GERRIT_BRANCH=$GERRIT_BRANCH
- GERRIT_REFSPEC=$GERRIT_REFSPEC
- GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
- GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
- VERBOSITY=$VERBOSITY
- job-template:
name: 'engine-verify-{lint-type}-{stream}'
node: infra-tools-docker-slave-ubuntu1804
parameters:
- - string:
- name: PROJECT
- default: $GERRIT_PROJECT
- description: 'The project which the change is proposed for'
- string:
name: LINT_TYPE
default: '{lint-type}'
name: REPOS_TO_IGNORE
default: '{repos-to-ignore}'
description: 'Repos to ignore for the specific lint type'
- - string:
- name: VERBOSITY
- default: 'false'
- description: 'Verbosity setting for the tox script'
- - nordix-gerrit-parameters
properties:
- logrotate
redirect_cmd source .venv/bin/activate
set -u
- # install test-requirements
- echo "Info : Install python packages listed in test-requirements.txt using pip"
- redirect_cmd pip install --force-reinstall -r test-requirements.txt
+ # install only tox since the rest of the requirements are installed by tox itself
+ TOX_PACKAGE=$(grep "^tox==" test-requirements.txt)
+ echo "Info : Install $TOX_PACKAGE"
+ redirect_cmd pip install --force-reinstall "$TOX_PACKAGE"
# run tox
echo "Info : Run $LINT_TYPE using tox"