[Concept,09/10] CI: ulib: Test building examples separately
Commit Message
From: Simon Glass <sjg@chromium.org>
Check that it is possible to build the ulib examples separately from
the U-Boot build.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
.gitlab-ci.yml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
@@ -337,6 +337,26 @@ Check packing of Python tools:
script:
- make pip
+Examples:
+ extends: .test_suites
+ script:
+ - git config --global user.name "GitLab CI Runner";
+ git config --global user.email trini@konsulko.com;
+ git config --global --add safe.directory "${CI_PROJECT_DIR}";
+ export USER=gitlab;
+ export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox;
+ set +e;
+ ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
+ --board sandbox;
+ set -e;
+ - echo "Building examples";
+ cd examples/ulib;
+ make UBOOT_BUILD=${UBOOT_TRAVIS_BUILD_DIR} srctree=../..
+ - echo "Running static";
+ ./demo_static
+ - echo "Running dynamic";
+ LD_LIBRARY_PATH=${UBOOT_TRAVIS_BUILD_DIR} ./demo
+
# Template for running the 'make check' tools
.python_check_template:
stage: test.py