mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-11 09:47:00 +02:00
CI: Make more use of git safe.directory
We have a number of jobs that will have git complain about needing to set safe.directory and this being untrue as a fatal error, but then complete. Set this flag correctly now as it should be used, and may prevent a future failure. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8c7b55724c
commit
bd181a24c4
@ -362,6 +362,7 @@ stages:
|
|||||||
cat << "EOF" >> test.sh
|
cat << "EOF" >> test.sh
|
||||||
# the below corresponds to .gitlab-ci.yml "before_script"
|
# the below corresponds to .gitlab-ci.yml "before_script"
|
||||||
cd ${WORK_DIR}
|
cd ${WORK_DIR}
|
||||||
|
git config --global --add safe.directory ${WORK_DIR}
|
||||||
git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
|
git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
|
||||||
ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
|
ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
|
||||||
ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
|
ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
|
||||||
@ -549,6 +550,7 @@ stages:
|
|||||||
cd ${WORK_DIR}
|
cd ${WORK_DIR}
|
||||||
# make environment variables available as tests are running inside a container
|
# make environment variables available as tests are running inside a container
|
||||||
export BUILDMAN="${BUILDMAN}"
|
export BUILDMAN="${BUILDMAN}"
|
||||||
|
git config --global --add safe.directory ${WORK_DIR}
|
||||||
EOF
|
EOF
|
||||||
cat << "EOF" >> build.sh
|
cat << "EOF" >> build.sh
|
||||||
if [[ "${BUILDMAN}" != "" ]]; then
|
if [[ "${BUILDMAN}" != "" ]]; then
|
||||||
|
@ -14,6 +14,7 @@ stages:
|
|||||||
stage: test.py
|
stage: test.py
|
||||||
before_script:
|
before_script:
|
||||||
# Clone uboot-test-hooks
|
# Clone uboot-test-hooks
|
||||||
|
- git config --global --add safe.directory "${CI_PROJECT_DIR}"
|
||||||
- git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
|
- git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
|
||||||
- ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
|
- ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
|
||||||
- ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
|
- ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
|
||||||
@ -81,6 +82,7 @@ build all 32bit ARM platforms:
|
|||||||
stage: world build
|
stage: world build
|
||||||
script:
|
script:
|
||||||
- ret=0;
|
- ret=0;
|
||||||
|
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||||
./tools/buildman/buildman -o /tmp -PEWM arm -x aarch64 || ret=$?;
|
./tools/buildman/buildman -o /tmp -PEWM arm -x aarch64 || ret=$?;
|
||||||
if [[ $ret -ne 0 ]]; then
|
if [[ $ret -ne 0 ]]; then
|
||||||
./tools/buildman/buildman -o /tmp -seP;
|
./tools/buildman/buildman -o /tmp -seP;
|
||||||
@ -93,6 +95,7 @@ build all 64bit ARM platforms:
|
|||||||
- virtualenv -p /usr/bin/python3 /tmp/venv
|
- virtualenv -p /usr/bin/python3 /tmp/venv
|
||||||
- . /tmp/venv/bin/activate
|
- . /tmp/venv/bin/activate
|
||||||
- ret=0;
|
- ret=0;
|
||||||
|
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||||
./tools/buildman/buildman -o /tmp -PEWM aarch64 || ret=$?;
|
./tools/buildman/buildman -o /tmp -PEWM aarch64 || ret=$?;
|
||||||
if [[ $ret -ne 0 ]]; then
|
if [[ $ret -ne 0 ]]; then
|
||||||
./tools/buildman/buildman -o /tmp -seP;
|
./tools/buildman/buildman -o /tmp -seP;
|
||||||
@ -103,6 +106,7 @@ build all PowerPC platforms:
|
|||||||
stage: world build
|
stage: world build
|
||||||
script:
|
script:
|
||||||
- ret=0;
|
- ret=0;
|
||||||
|
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||||
./tools/buildman/buildman -o /tmp -P -E -W powerpc || ret=$?;
|
./tools/buildman/buildman -o /tmp -P -E -W powerpc || ret=$?;
|
||||||
if [[ $ret -ne 0 ]]; then
|
if [[ $ret -ne 0 ]]; then
|
||||||
./tools/buildman/buildman -o /tmp -seP;
|
./tools/buildman/buildman -o /tmp -seP;
|
||||||
@ -113,6 +117,7 @@ build all other platforms:
|
|||||||
stage: world build
|
stage: world build
|
||||||
script:
|
script:
|
||||||
- ret=0;
|
- ret=0;
|
||||||
|
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||||
./tools/buildman/buildman -o /tmp -PEWM -x arm,powerpc || ret=$?;
|
./tools/buildman/buildman -o /tmp -PEWM -x arm,powerpc || ret=$?;
|
||||||
if [[ $ret -ne 0 ]]; then
|
if [[ $ret -ne 0 ]]; then
|
||||||
./tools/buildman/buildman -o /tmp -seP;
|
./tools/buildman/buildman -o /tmp -seP;
|
||||||
|
Loading…
Reference in New Issue
Block a user