displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
pool:
vmImage: $(ubuntu_vm)
+ container:
+ image: $(ci_runner_image)
+ options: $(container_option)
steps:
- script: |
- cat << "EOF" > build.sh
- cd $(work_dir)
- # Copy things from /home/uboot to the Azure container user
- sudo cp -a /home/uboot/.buildman /home/uboot/.cache ~
- sudo chown -R 1001 ~/.cache ~/.buildman
+ # Configure git
git config --global user.name "Azure Pipelines"
git config --global user.email bmeng.cn@gmail.com
- git config --global --add safe.directory $(work_dir)
export USER=azure
python3 -m venv /tmp/venv
. /tmp/venv/bin/activate
BUILDMAN: $(arm_catch_all)
aarch64_catch_all:
BUILDMAN: $(aarch64_catch_all)
- everything_but_arm_and_powerpc:
- BUILDMAN: $(everything_but_arm_and_powerpc)
steps:
- script: |
- cat << EOF > build.sh
set -ex
- cd ${WORK_DIR}
- # make environment variables available as tests are running inside a container
- export BUILDMAN="${BUILDMAN}"
- git config --global --add safe.directory ${WORK_DIR}
- # Copy things from /home/uboot to the Azure container user
- sudo cp -a /home/uboot/.buildman /home/uboot/.cache ~
- sudo chown -R 1001 ~/.cache ~/.buildman
+ # Setup venv, perform build
python3 -m venv /tmp/venv
. /tmp/venv/bin/activate
pip install -r tools/binman/requirements.txt \
- -r tools/buildman/requirements.txt
+ -r tools/buildman/requirements.txt \
+ setuptools
- EOF
- cat << "EOF" >> build.sh
if [[ "${BUILDMAN}" != "" ]]; then
ret=0;
tools/buildman/buildman -o /tmp -PEWM ${BUILDMAN} ${OVERRIDE} || ret=$?;