Update ci
This commit is contained in:
parent
9ef59fbbc2
commit
3bb042713d
|
@ -0,0 +1,8 @@
|
||||||
|
mkdir ~/sdk
|
||||||
|
cd ~/sdk
|
||||||
|
|
||||||
|
curl "https://$SDK_HOST/$SDK_PATH/sha256sums" -sS -o sha256sums
|
||||||
|
curl "https://$SDK_HOST/$SDK_PATH/sha256sums.asc" -sS -o sha256sums.asc
|
||||||
|
gpg --with-fingerprint --verify sha256sums.asc sha256sums
|
||||||
|
rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" .
|
||||||
|
sha256sum -c --ignore-missing sha256sums
|
|
@ -0,0 +1,15 @@
|
||||||
|
|
||||||
|
mkdir ~/build_dir
|
||||||
|
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-link $CI_PROJECT_NAME /builds/$CI_PROJECT_PATH
|
||||||
|
src-git luci https://github.com/openwrt/luci.git;master
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat feeds.conf
|
||||||
|
./scripts/feeds update -a > /dev/null
|
||||||
|
./scripts/feeds install -a > /dev/null
|
|
@ -11,21 +11,11 @@ stages:
|
||||||
compile:
|
compile:
|
||||||
stage: compile
|
stage: compile
|
||||||
script:
|
script:
|
||||||
- mkdir ~/build_dir
|
- echo "==== Download the SDK ===="
|
||||||
- cd ~/build_dir
|
- /builds/$CI_PROJECT_PATH/.ci/download_sdk.sh
|
||||||
- echo "==== extract sdk ===="
|
- echo "==== Prepare build_dir ===="
|
||||||
- rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" ~/sdk/
|
- /builds/$CI_PROJECT_PATH/.ci/prepare_build_dir.sh
|
||||||
- tar Jxf ~/sdk/$SDK_FILE --strip=1
|
- echo "==== list all packages ===="
|
||||||
- echo "==== run feed ===="
|
- for PKG in /builds/$CI_PROJECT_PATH/$CI_PROJECT_NAME/* ; do echo $PKG; done
|
||||||
- echo
|
|
||||||
src-git base https://github.com/openwrt/openwrt.git;master
|
|
||||||
src-link wifictld /builds/$CI_PROJECT_PATH
|
|
||||||
> feeds.conf
|
|
||||||
- cat feeds.conf
|
|
||||||
- ./scripts/feeds update -a > /dev/null
|
|
||||||
- ./scripts/feeds install -a > /dev/null
|
|
||||||
- make defconfig > /dev/null
|
|
||||||
- sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config
|
|
||||||
- for PKG in /builds/$CI_PROJECT_PATH/wifictld/* ; do echo $PKG; done
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
Loading…
Reference in New Issue