summaryrefslogtreecommitdiff
path: root/.azure-pipelines.yml
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-02-11 13:23:26 -0700
committerTom Rini <trini@konsulko.com>2022-03-02 10:28:12 -0500
commit642e51addf918e0dd1b901efaa9f5706c12365b7 (patch)
tree7ba56091d7713bf04e940afa9a2f8adcaeeb2a16 /.azure-pipelines.yml
parentfc8af3803f9b4bd0ea8be8a7d2c4e915dc19c3a7 (diff)
downloadu-boot-642e51addf918e0dd1b901efaa9f5706c12365b7.tar.gz
Azure/GitLab CI: Add the pylint checker
Add a check that new Python code does not regress the pylint score for any module. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to '.azure-pipelines.yml')
-rw-r--r--.azure-pipelines.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index db452916d0..8352b10348 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -202,6 +202,28 @@ stages:
export PATH=/opt/gcc-11.1.0-nolibc/arm-linux-gnueabi/bin:$PATH
test/nokia_rx51_test.sh
+ - job: pylint
+ displayName: Check for any pylint regressions
+ pool:
+ vmImage: $(ubuntu_vm)
+ container:
+ image: $(ci_runner_image)
+ options: $(container_option)
+ steps:
+ - script: |
+ cd ${WORK_DIR}
+ export USER=azure
+ pip install -r test/py/requirements.txt
+ pip install asteval pylint pyopenssl
+ export PATH=${PATH}:~/.local/bin
+ echo "[MASTER]" >> .pylintrc
+ echo "load-plugins=pylint.extensions.docparams" >> .pylintrc
+ export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl
+ ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board sandbox_spl
+ pylint --version
+ export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
+ make pylint_err
+
- stage: test_py
jobs:
- job: test_py