Update .ci/prepare_build_dir.sh, .ci/build_pkgs.sh files

This commit is contained in:
Martin/Geno 2019-02-26 13:30:40 +01:00
parent f8550d63ba
commit e07dfb4774
2 changed files with 31 additions and 3 deletions

View File

@ -3,11 +3,36 @@ echo_green() { printf "\033[1;32m\$*\033[m\n"; }
echo_blue() { printf "\033[1;34m\$*\033[m\n"; }
cd /builds/$CI_PROJECT_PATH/wireless
cd /builds/$CI_PROJECT_PATH/wireless/
PKGS=$(ls)
cd ~/build_dir
echo_blue "=== Found new/modified packages: $PKGS"
for PKG in $PKGS ; do
echo_blue "===+ Download: $PKG"
make "package/$PKG/download" V=s
echo_blue "===+ Check package: $PKG"
make "package/$PKG/check" V=s 2>&1 | tee logtmp
RET=${PIPESTATUS[0]}
if [ $RET -ne 0 ]; then
echo_red "=> Package check failed: $RET)"
exit $RET
fi
badhash_msg="HASH does not match "
badhash_msg+="|HASH uses deprecated hash,"
badhash_msg+="|HASH is missing,"
if grep -qE "$badhash_msg" logtmp; then
echo_red "=> Package HASH check failed"
exit 1
fi
echo_green "=> Package check OK"
done
for PKG in $PKGS ; do
echo_blue "===+ Building: $PKG"

View File

@ -5,9 +5,12 @@ cd ~/build_dir
tar Jxf ~/sdk/$SDK_FILE --strip=1
cat > feeds.conf <<EOF
src-git base https://github.com/openwrt/openwrt.git;master
src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-link $CI_PROJECT_NAME /builds/$CI_PROJECT_PATH
src-git luci https://github.com/openwrt/luci.git;master
EOF
cat feeds.conf