mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
CI: Add a check for pre-schema driver model tags
These should not be used anymore. Add a check to ensure they don't creek back into U-Boot. Use bootph-... instead. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
48be546b70
commit
441a3d0a7a
2 changed files with 21 additions and 0 deletions
|
@ -213,6 +213,18 @@ stages:
|
||||||
export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
|
export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
|
||||||
make pylint_err
|
make pylint_err
|
||||||
|
|
||||||
|
- job: check_for_pre_schema_tags
|
||||||
|
displayName: 'Check for pre-schema driver model tags'
|
||||||
|
pool:
|
||||||
|
vmImage: $(ubuntu_vm)
|
||||||
|
container:
|
||||||
|
image: $(ci_runner_image)
|
||||||
|
options: $(container_option)
|
||||||
|
steps:
|
||||||
|
# If grep succeeds and finds a match the test fails as we should
|
||||||
|
# have no matches.
|
||||||
|
- script: git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
|
||||||
|
|
||||||
- stage: test_py
|
- stage: test_py
|
||||||
jobs:
|
jobs:
|
||||||
- job: test_py
|
- job: test_py
|
||||||
|
|
|
@ -235,6 +235,15 @@ Run pylint:
|
||||||
- export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
|
- export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"
|
||||||
- make pylint_err
|
- make pylint_err
|
||||||
|
|
||||||
|
# Check for pre-schema driver model tags
|
||||||
|
Check for pre-schema tags:
|
||||||
|
stage: testsuites
|
||||||
|
script:
|
||||||
|
- git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||||
|
# If grep succeeds and finds a match the test fails as we should
|
||||||
|
# have no matches.
|
||||||
|
- git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
|
||||||
|
|
||||||
# Test sandbox with test.py
|
# Test sandbox with test.py
|
||||||
sandbox test.py:
|
sandbox test.py:
|
||||||
variables:
|
variables:
|
||||||
|
|
Loading…
Add table
Reference in a new issue