1 Star 1 Fork 1

ywk2000 / openwrt-frp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 4.08 KB
一键复制 编辑 原始数据 按行查看 历史
kuoruan 提交于 2019-09-05 17:44 . ci(travis): fix build sdk filenames
dist: bionic
sudo: false
notifications:
email: false
language: c
compiler: gcc
cache:
bundler: true
directories:
- "${HOME}/dl"
- "${HOME}/files"
git:
depth: 3
submodules: false
env:
global:
- PACKAGE=frp
- USER=kuoruan
- REPO=openwrt-frp
- DOWNLOAD_DIR=${HOME}/files
matrix:
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/x86/64 SDK=-sdk-x86-64_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/x86/generic SDK=-sdk-x86-generic_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/ar71xx/generic SDK=-sdk-ar71xx-generic_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/ramips/mt7620 SDK=-sdk-ramips-mt7620_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/brcm2708/bcm2709 SDK=-sdk-brcm2708-bcm2709_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/brcm2708/bcm2710 SDK=-sdk-brcm2708-bcm2710_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/brcm63xx/generic SDK=-sdk-brcm63xx-generic_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/bcm53xx/generic SDK=-sdk-bcm53xx-generic_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/brcm47xx/generic SDK=-sdk-brcm47xx-generic_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9 SDK=-sdk-mvebu-cortexa9_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa72 SDK=-sdk-mvebu-cortexa72_
- SDK_PATH=https://downloads.openwrt.org/snapshots/targets/ipq806x/generic SDK=-sdk-ipq806x-generic_
install:
- |
if [ -z "$TRAVIS_TAG" ] && [ "x$SDK" != "x-sdk-x86-64_" ] ; then
travis_terminate 0
fi
- mkdir -p "$DOWNLOAD_DIR" && cd "$DOWNLOAD_DIR"
- wget "${SDK_PATH}/sha256sums" -O sha256sums
- |
if ! grep -- "$SDK" sha256sums > sha256sums.small 2>/dev/null ; then
printf "\033[1;31m=== Can not find ${SDK} file in sha256sums.\033[m\n"
exit 1
fi
- export SDK_FILE="$(cat sha256sums.small | cut -d' ' -f2 | sed 's/*//g')"
- |
if ! sha256sum -c ./sha256sums.small 2>/dev/null ; then
wget "${SDK_PATH}/${SDK_FILE}" -O "$SDK_FILE"
if ! sha256sum -c ./sha256sums.small 2>/dev/null ; then
printf "\033[1;31m=== SDK can not be verified!\033[m\n"
exit 1
fi
fi
- file "${DOWNLOAD_DIR}/${SDK_FILE}"
- export SDK_HOME="$(mktemp -d)"
- cd "$SDK_HOME"
- tar -Jxf "${DOWNLOAD_DIR}/${SDK_FILE}" --strip=1
- test -d "${HOME}/dl" || mkdir -p "${HOME}/dl"
- test -d "dl" && rm -rf dl
- ln -s "${HOME}/dl/" dl
- echo "src-git base https://github.com/openwrt/openwrt.git" >feeds.conf
- echo "src-git packages https://github.com/openwrt/packages.git" >>feeds.conf
- echo "src-git luci https://github.com/openwrt/luci.git" >>feeds.conf
- echo "src-git routing https://git.openwrt.org/feed/routing.git" >>feeds.conf
- echo "src-git telephony https://github.com/openwrt/telephony.git" >>feeds.conf
- ln -s "$TRAVIS_BUILD_DIR" "package/${PACKAGE}"
script:
- cd "$SDK_HOME"
- "./scripts/feeds update -a >/dev/null"
- "./scripts/feeds install -a >/dev/null"
- make defconfig
- make package/${PACKAGE}/compile V=s
- find "${SDK_HOME}/bin/"
- find "${SDK_HOME}/bin/" -name ${PACKAGE}*.ipk -exec cp {} "$TRAVIS_BUILD_DIR" \;
- ls -hl "$TRAVIS_BUILD_DIR" | grep .*\.ipk
deploy:
provider: releases
file_glob: true
file: "${TRAVIS_BUILD_DIR}/*.ipk"
skip_cleanup: true
on:
tags: true
all_branches: true
api_key:
secure: nFPuFSdL+/utr9qYreLDYlcpJ+st+tiIl1uv+KS3VIvlJ3LVydYIcKo3A55IlG3PhuVUzIN62DYXd0lDNmAqioWkn8PlpDSeFj7hwlJxxTXvspe1XaipB0/uhFDKfByt/b1daM1g//ycOeO6TC/Jbuxok9KO8qEiJ2KRWbx9rMVJemoNoOozJgwwcA2oek7WtU8j4A+k6c7R0O2V+6CBYRpiinkdzmtYC4tE958NKlJcCgrEKg2HoGGFZYZbyr3HFUCTa6o/BPwRm9B+UA0zePOCidaVuY81/OFmNQ9mD1BMhmDWfCRgKkqZ/FjXXv5qdX5bdyEQmJ9UbmTQK6gyLxuh7aDykzORnPEg/4ANr/YbuZ+tu9n/y8wW9fOjzuD0Y99lrk1AuM5V1dkCwMVH8EqFA+KQ5QG+uoeUm+tRBahqEnMhLu8kuGN/1V5ukioakDfMuwGgHvJrflpOMF7CTc/v/GtPHyG+FIfsv42lMhWXFJSTFQP2bbAEo26UsxuCClLISKDT7Tn/g1JVfs7hiEZ8+PV0fy2qIB7mUKr14zNO2V6oWPjQQvDAy19kJjTv81MG9tKGx7mLILEMvBjmtJJTwg8Y0MgOy1/0M1p3JuatndsZ0qICbho3sTWKuFlP5/kcIla3mmPv76MocCr84rbq4rOdff+v5rZ1J6b7cmQ=
1
https://gitee.com/ywk2000/openwrt-frp.git
git@gitee.com:ywk2000/openwrt-frp.git
ywk2000
openwrt-frp
openwrt-frp
master

搜索帮助