publishers:
- archive:
artifacts: 'pep8.out,pylint.out'
- - violations:
- pep8:
- pattern: pep8.out
- min: 10
- max: 999
- unstable: 999
- pylint:
- pattern: pylint.out
- min: 10
- max: 999
- unstable: 999
- email-ext:
recipients: '{obj:email_to}'
reply-to: ci-notification@lists.lttng.org
#!/bin/bash -exu
#
-# Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
+# Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Create virtualenv and install necessary packages
virtualenv --system-site-packages -p $PYTHON3 "$PYENV_HOME"
-set +u
+set +ux
+# shellcheck disable=SC1090
. "$PYENV_HOME/bin/activate"
-set -u
+set -ux
pip install --quiet pylint
pip install --quiet pep8
+
cd "$SRCDIR"
pep8 lttnganalyses | tee "$WORKSPACE/pep8.out"
-
pylint -f parseable --ignore="_version.py" --disable=C0111 lttnganalyses | tee "$WORKSPACE/pylint.out"