# SPDX-License-Identifier: GPL-2.0+
+variables:
+ DEFAULT_TAG: ""
+ MIRROR_DOCKER: docker.io
+
+default:
+ tags:
+ - ${DEFAULT_TAG}
+
# Grab our configured image. The source for this is found
# in the u-boot tree at tools/docker/Dockerfile
-image: trini/u-boot-gitlab-ci-runner:jammy-20230126-17Feb2023
+image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20230308-04Apr2023
# We run some tests in different order, to catch some failures quicker.
stages:
fi
after_script:
+ - cp -v /tmp/${TEST_PY_BD}/*.{html,css} .
- rm -rf /tmp/uboot-test-hooks /tmp/venv
script:
# If we've been asked to use clang only do one configuration.
./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID}
${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
--build-dir "$UBOOT_TRAVIS_BUILD_DIR"
- # It seems that the files in /tmp go away, so copy out what we need
- - if [[ "${TEST_PY_BD}" == "coreboot" ]]; then
- cp -v /tmp/coreboot/*.{html,css} .;
- fi
+ artifacts:
+ when: always
+ paths:
+ - "*.html"
+ - "*.css"
+ expire_in: 1 week
build all 32bit ARM platforms:
stage: world build
# have no matches.
- git grep u-boot,dm- -- '*.dts*' && exit 1 || exit 0
+# Check we can package the Python tools
+Check packing of Python tools:
+ stage: testsuites
+ script:
+ - make pip
+
# Test sandbox with test.py
sandbox test.py:
variables:
sandbox with clang test.py:
variables:
TEST_PY_BD: "sandbox"
- OVERRIDE: "-O clang-14"
+ OVERRIDE: "-O clang-16"
<<: *buildman_and_testpy_dfn
sandbox without LTO test.py:
sandbox_vpl test.py:
variables:
TEST_PY_BD: "sandbox_vpl"
- TEST_PY_TEST_SPEC: "test_vpl_help or test_spl"
+ TEST_PY_TEST_SPEC: "vpl or test_spl"
<<: *buildman_and_testpy_dfn
# Enable tracing and disable LTO, to ensure functions are not elided
TEST_PY_BD: "coreboot"
TEST_PY_TEST_SPEC: "not sleep"
TEST_PY_ID: "--id qemu"
- artifacts:
- paths:
- - "*.html"
- - "*.css"
- expire_in: 1 week
<<: *buildman_and_testpy_dfn