加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.travis.yml 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
hanwckf 提交于 2020-03-31 09:22 . travis-ci: only build master branch
dist: bionic
language: c
compiler:
- gcc
branches:
only:
- master
- /^v.*$/
addons:
apt:
packages: [ fakeroot, p7zip-full, libtool-bin, gperf, texinfo, python-docutils, autopoint ]
before_script:
- ./trunk/tools/shellcheck.sh
- mkdir -p /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x && mkdir -p /opt/images/
- cp -f ./trunk/tools/travis/* /opt && ./trunk/tools/travis_ci_build_trig.sh
- rm -rf toolchain-mipsel/ && mv -f * .[^.]* /opt/rt-n56u
- wget $toolchain_url && tar -xf mipsel-linux-uclibc.tar.xz -C /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x
- ls -Alh /opt/rt-n56u && cd /opt/rt-n56u/trunk/
script:
- for m in $targets; do fakeroot ./build_firmware_nohup $m && cp -f images/*.trx /opt/images/$m.trx; ./clear_tree_simple >/dev/null 2>&1; done
after_script:
- GIT_VERSION=`git rev-parse --short=7 HEAD 2>/dev/null` && [ -n "$GIT_VERSION" ] && image_name=images_mt7620_$GIT_VERSION || image_name=images_mt7620
- cd /opt/images; du -k *; md5sum *.trx |tee md5sum.txt; 7z a -mx=9 ${image_name}.7z ./*
- "curl -m 180 -F file=@${image_name}.7z https://file.io/?expires=3d ; echo"
- "curl -m 180 -H 'Max-Days: 3' --upload-file ./${image_name}.7z https://transfer.sh/${image_name}.7z ; echo"
env:
global:
- targets="PSG1208 PSG1218 NEWIFI-MINI MI-MINI MI-3 OYE-001"
- toolchain_url="https://github.com/hanwckf/padavan-toolchain/releases/download/v1.1/mipsel-linux-uclibc.tar.xz"
- secure: URLT7NCfQa0gh0Uty8uZqvvD9D8RolF0eKwXLIsCy+3w4pd4Qiwe6N/zRew41UZ+cC7PXjZeysc0XjuY58DncW9zEWgFAcfcrikkBaZEZhk6iAu4Y8AgYS5qMynLR6h8SE/QhThJBjIUQGhBNdP9Cze6smqlK0Q1gHbFndfndxcAuf7HaaJPvpV4enV5yyouyC4JBXLkth4yAyidZjHclZeSLzSQQxvU68X2fFLazNRcmqZb2GW8DUx/lCVllScgIFaPXkWlzZEgeESE3kDLoum1zTkf/btJswX+d/mxMOrJiYx/ur+NXhBGyE7yaPCoc+4cpg+R7mPKIGVyJ6WPgQm7lrcn2QWTtYmEizZ0qiCK7yU1hPbOe6VU9QfrbUNVoalYI4Hx0stmiZV1Vpx73L5oy/ZQEAayS7rhSBntN6KozgRPrA/ZqrE6mI1Ky6lQAYfsekqivZq7nNfyV7VSX4A3iZ73NY4LEXrbuordSWIpW9RuIt0i6zfBUD4nDN6PlYnrL7lp4Nq/14TI/x2eq95TQ/+zYk0pT4svp2OKUyOp89k2Y2R25BHCyOVynkwNSk6zN9IgmTyD5TQTV2ceIj61mGbnKkn2+8wWfaSq2IdKmttBfxkVpWlSA7qfCign4WuigClt5Ng7935zIT9UqzIftoESPWaseNy1prbItjk=
git:
depth: 3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化