1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +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:
Tom Rini
2019-08-12 10:09:08 -04:00
parent edbe0d5664
commit d7ae932152

View File

@@ -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
script:
- export USER=gitlab
- ./tools/buildman/buildman -t
Run binman and dtoc testsuite:
tags: [ 'all' ]
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 PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"; export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test && ./tools/buildman/buildman -P sandbox_spl;
./tools/dtoc/dtoc -t ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
./tools/buildman/buildman -t;
./tools/dtoc/dtoc -t;
./tools/patman/patman --test
# Test sandbox with test.py # Test sandbox with test.py
sandbox test.py: sandbox test.py: