提交 db7b8602 编写于 作者: T Tom Rini

gitlab-ci: Have buildman use /tmp for output

When running as another user we might not be able to use '..' for
certain directories and this is the default for buildman.  Specify an
output directory instead.
Signed-off-by: NTom Rini <trini@konsulko.com>
上级 aae62584
...@@ -36,9 +36,9 @@ stages: ...@@ -36,9 +36,9 @@ stages:
# use clang only do one configuration. # use clang only do one configuration.
- if [[ "${BUILDMAN}" != "" ]]; then - if [[ "${BUILDMAN}" != "" ]]; then
ret=0; ret=0;
tools/buildman/buildman -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?; tools/buildman/buildman -o /tmp -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?;
if [[ $ret -ne 0 && $ret -ne 129 ]]; then if [[ $ret -ne 0 && $ret -ne 129 ]]; then
tools/buildman/buildman -sdeP ${BUILDMAN}; tools/buildman/buildman -o /tmp -sdeP ${BUILDMAN};
exit $ret; exit $ret;
fi; fi;
fi fi
...@@ -46,7 +46,7 @@ stages: ...@@ -46,7 +46,7 @@ stages:
# never prevent any test from running. That way, we can always pass # never prevent any test from running. That way, we can always pass
# "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
# value. # value.
- export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD}; - export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/${TEST_PY_BD};
export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin; export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin;
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci; export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
if [[ "${TEST_PY_BD}" != "" ]]; then if [[ "${TEST_PY_BD}" != "" ]]; then
...@@ -64,9 +64,9 @@ build all 32bit ARM platforms: ...@@ -64,9 +64,9 @@ build all 32bit ARM platforms:
stage: world build stage: world build
script: script:
- ret=0; - ret=0;
./tools/buildman/buildman -P -E arm -x aarch64 || ret=$?; ./tools/buildman/buildman -o /tmp -P -E arm -x aarch64 || ret=$?;
if [[ $ret -ne 0 && $ret -ne 129 ]]; then if [[ $ret -ne 0 && $ret -ne 129 ]]; then
./tools/buildman/buildman -sdeP; ./tools/buildman/buildman -o /tmp -sdeP;
exit $ret; exit $ret;
fi; fi;
...@@ -78,9 +78,9 @@ build all 64bit ARM platforms: ...@@ -78,9 +78,9 @@ build all 64bit ARM platforms:
- . /tmp/venv/bin/activate - . /tmp/venv/bin/activate
- pip install pyelftools - pip install pyelftools
- ret=0; - ret=0;
./tools/buildman/buildman -P -E aarch64 || ret=$?; ./tools/buildman/buildman -o /tmp -P -E aarch64 || ret=$?;
if [[ $ret -ne 0 && $ret -ne 129 ]]; then if [[ $ret -ne 0 && $ret -ne 129 ]]; then
./tools/buildman/buildman -sdeP; ./tools/buildman/buildman -o /tmp -sdeP;
exit $ret; exit $ret;
fi; fi;
...@@ -89,9 +89,9 @@ build all PowerPC platforms: ...@@ -89,9 +89,9 @@ build all PowerPC platforms:
stage: world build stage: world build
script: script:
- ret=0; - ret=0;
./tools/buildman/buildman -P -E powerpc || ret=$?; ./tools/buildman/buildman -o /tmp -P -E powerpc || ret=$?;
if [[ $ret -ne 0 && $ret -ne 129 ]]; then if [[ $ret -ne 0 && $ret -ne 129 ]]; then
./tools/buildman/buildman -sdeP; ./tools/buildman/buildman -o /tmp -sdeP;
exit $ret; exit $ret;
fi; fi;
...@@ -100,9 +100,9 @@ build all other platforms: ...@@ -100,9 +100,9 @@ build all other platforms:
stage: world build stage: world build
script: script:
- ret=0; - ret=0;
./tools/buildman/buildman -P -E -x arm,powerpc || ret=$?; ./tools/buildman/buildman -o /tmp -P -E -x arm,powerpc || ret=$?;
if [[ $ret -ne 0 && $ret -ne 129 ]]; then if [[ $ret -ne 0 && $ret -ne 129 ]]; then
./tools/buildman/buildman -sdeP; ./tools/buildman/buildman -o /tmp -sdeP;
exit $ret; exit $ret;
fi; fi;
...@@ -162,10 +162,10 @@ Run binman, buildman, dtoc and patman testsuites: ...@@ -162,10 +162,10 @@ Run binman, buildman, dtoc and patman testsuites:
virtualenv /tmp/venv; virtualenv /tmp/venv;
. /tmp/venv/bin/activate; . /tmp/venv/bin/activate;
pip install pyelftools; pip install pyelftools;
export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/sandbox_spl; export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/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/buildman/buildman -P sandbox_spl; ./tools/buildman/buildman -o /tmp -P sandbox_spl;
./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test; ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
./tools/buildman/buildman -t; ./tools/buildman/buildman -t;
./tools/dtoc/dtoc -t; ./tools/dtoc/dtoc -t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册