Merge pull request #9731 from jefferyto/ci-improvements-openwrt-19.07
[openwrt-19.07] CI fixes and improvement
This commit is contained in:
commit
39c4e21b6b
2 changed files with 13 additions and 2 deletions
|
@ -6,6 +6,7 @@ FROM debian:9
|
|||
# v1.0.1 - Run as non-root, add unzip, xz-utils
|
||||
# v1.0.2 - Add bzr
|
||||
# v1.0.3 - Verify usign signatures
|
||||
# v1.0.4 - Add support for Python3
|
||||
|
||||
RUN apt update && apt install -y \
|
||||
build-essential \
|
||||
|
@ -18,6 +19,7 @@ git \
|
|||
libncurses5-dev \
|
||||
libssl-dev \
|
||||
python \
|
||||
python3 \
|
||||
signify-openbsd \
|
||||
subversion \
|
||||
time \
|
||||
|
|
|
@ -2,7 +2,7 @@ version: 2.0
|
|||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: docker.io/openwrtorg/packages-cci:v1.0.3
|
||||
- image: docker.io/openwrtorg/packages-cci:v1.0.4
|
||||
environment:
|
||||
- SDK_HOST: "downloads.openwrt.org"
|
||||
- SDK_PATH: "snapshots/targets/ath79/generic"
|
||||
|
@ -94,6 +94,11 @@ jobs:
|
|||
working_directory: ~/build_dir
|
||||
command: |
|
||||
tar Jxf ~/sdk/$SDK_FILE --strip=1
|
||||
touch .config
|
||||
make prepare-tmpinfo scripts/config/conf
|
||||
./scripts/config/conf --defconfig=.config Config.in
|
||||
make prereq
|
||||
rm .config
|
||||
cat > feeds.conf <<EOF
|
||||
src-git base https://github.com/openwrt/openwrt.git;$BRANCH
|
||||
src-link packages $HOME/openwrt_packages
|
||||
|
@ -143,7 +148,11 @@ jobs:
|
|||
|
||||
for PKG in $PKGS ; do
|
||||
echo_blue "===+ Building: $PKG"
|
||||
make "package/$PKG/compile" -j3 V=s
|
||||
make "package/$PKG/compile" -j3 V=s || {
|
||||
RET=$?
|
||||
echo_red "===+ Building: $PKG failed, rebuilding with -j1 for human readable error log"
|
||||
make "package/$PKG/compile" -j1 V=s; exit $RET
|
||||
}
|
||||
done
|
||||
|
||||
- store_artifacts:
|
||||
|
|
Loading…
Reference in a new issue