mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
gitlab-ci: Consolidate some testsuite jobs
We do not need to split binman, buildman, dtoc and patman test suite runs into 3 jobs. Instead, run them as a single job. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -145,36 +145,24 @@ Build tools-only:
|
|||||||
script:
|
script:
|
||||||
- make tools-only_config tools-only -j$(nproc)
|
- make tools-only_config tools-only -j$(nproc)
|
||||||
|
|
||||||
# Run various tool tests
|
Run binman, buildman, dtoc and patman testsuites:
|
||||||
Run patman testsuite:
|
|
||||||
tags: [ 'all' ]
|
tags: [ 'all' ]
|
||||||
stage: testsuites
|
stage: testsuites
|
||||||
script:
|
script:
|
||||||
- git config --global user.name "GitLab CI Runner"
|
- git config --global user.name "GitLab CI Runner";
|
||||||
- git config --global user.email trini@konsulko.com
|
git config --global user.email trini@konsulko.com;
|
||||||
- export USER=gitlab
|
export USER=gitlab;
|
||||||
- ./tools/patman/patman --test
|
virtualenv /tmp/venv;
|
||||||
|
. /tmp/venv/bin/activate;
|
||||||
Run buildman testsuite:
|
pip install pyelftools;
|
||||||
tags: [ 'all' ]
|
export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/sandbox_spl;
|
||||||
stage: testsuites
|
export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
|
||||||
script:
|
export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
|
||||||
- export USER=gitlab
|
./tools/buildman/buildman -P sandbox_spl;
|
||||||
- ./tools/buildman/buildman -t
|
./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
|
||||||
|
./tools/buildman/buildman -t;
|
||||||
Run binman and dtoc testsuite:
|
./tools/dtoc/dtoc -t;
|
||||||
tags: [ 'all' ]
|
./tools/patman/patman --test
|
||||||
stage: testsuites
|
|
||||||
script:
|
|
||||||
- virtualenv /tmp/venv
|
|
||||||
- . /tmp/venv/bin/activate
|
|
||||||
- pip install pyelftools
|
|
||||||
- export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/sandbox_spl;
|
|
||||||
./tools/buildman/buildman -P sandbox_spl &&
|
|
||||||
export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
|
|
||||||
export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
|
|
||||||
./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test &&
|
|
||||||
./tools/dtoc/dtoc -t
|
|
||||||
|
|
||||||
# Test sandbox with test.py
|
# Test sandbox with test.py
|
||||||
sandbox test.py:
|
sandbox test.py:
|
||||||
|
Reference in New Issue
Block a user