name: csit-validate
jobs:
- - 'csit-validate-pylint-{stream}'
+ - 'csit-verify-tox-{stream}'
project: 'csit'
branch: 'master'
branch: 'rls1901'
- job-template:
- name: 'csit-validate-pylint-{stream}'
+ name: 'csit-verify-tox-{stream}'
project-type: freestyle
- node: ubuntu1604-basebuild-4c-4g
+ node: ubuntu1804-us
concurrent: true
build-discarder:
project: '{project}'
- gerrit-parameter:
branch: '{branch}'
+ - gerrit-refspec-parameter
scm:
- gerrit-trigger-scm:
branch: '{branch}'
builders:
- # yamllint disable-line rule:line-length
- # This is where we will need to insert a step with a script that pulls all the
- # yamllint disable-line rule:line-length
- # allocated IP addresses and injecting as vars into the env. (see Opendaylight script: include-raw-integration-get-slave-addresses.sh
- # yamllint enable rule:line-length
- # See jjb/integration from ODL
- shell:
- !include-raw-escape: include-raw-csit-pylint.sh
+ ./resources/libraries/bash/entry/tox.sh
publishers:
- archive-artifacts:
- artifacts: 'pylint.log'
+ artifacts: '*.log'
latest-only: false
+ # TODO: Remove this when a voting pylint difference checker
+ # with nice enough output is implemented.
- violations:
pylint:
min: 10
+++ /dev/null
-#!/bin/bash
-
-set -x
-
-# Re-create virtual environment
-rm -rf env || true
-virtualenv env
-. env/bin/activate
-
-# Install requirements, so all CSIT python dependencies are met
-pip install -r requirements.txt
-pip install pylint==1.5.4
-
-# Run pylint, but hide its' return value until python warnings are cleared
-PYTHONPATH=`pwd` pylint --rcfile=pylint.cfg resources/ > pylint.log || true
-
-# vim: ts=4 ts=4 sts=4 et :