mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
# pre_check stage
|
|
clang_tidy_check:
|
|
extends:
|
|
- .pre_check_template
|
|
- .rules:patterns:clang_tidy
|
|
artifacts:
|
|
paths:
|
|
- clang_tidy_reports/
|
|
expire_in: 1 week
|
|
when: always
|
|
variables:
|
|
IDF_TOOLCHAIN: clang
|
|
script:
|
|
- run_cmd idf_clang_tidy $(cat tools/ci/clang_tidy_dirs.txt | xargs)
|
|
--output-path clang_tidy_reports
|
|
--limit-file tools/ci/static-analysis-rules.yml
|
|
--xtensa-include-dir
|
|
|
|
check_pylint:
|
|
extends:
|
|
- .pre_check_template
|
|
- .rules:patterns:python-files
|
|
needs:
|
|
- pipeline_variables
|
|
artifacts:
|
|
reports:
|
|
codequality: pylint.json
|
|
paths:
|
|
- pylint.json
|
|
expire_in: 1 week
|
|
when: always
|
|
script:
|
|
- |
|
|
if [ -n "$CI_MERGE_REQUEST_IID" ]; then
|
|
export files=$(echo "$GIT_DIFF_OUTPUT" | grep ".py$" | xargs);
|
|
else
|
|
export files=$(git ls-files "*.py" | xargs);
|
|
fi
|
|
- if [ -z "$files" ]; then echo "No python files found"; exit 0; fi
|
|
- run_cmd pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate:pylint.json $files
|