1 Star 1 Fork 0

ljk12345678/MF1_SDK

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
xel 提交于 2019-09-07 17:30 . 1.update uart protocol to v2
language:
- c
compiler:
- gcc
cache:
directories:
- "${HOME}/.build_cache"
env:
global:
- rev=$(git rev-parse --short HEAD)
- BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- curr_branch=$TRAVIS_BRANCH
branches:
only:
- dev
stages:
- name: mf1_build
jobs:
include:
- stage: mf1_build
env: NAME="mf1 build"
install:
- sudo apt-get update
- sudo apt-get install -y sshpass p7zip-full
- wget https://github.com/kendryte/kendryte-gnu-toolchain/releases/download/v8.2.0-20190409/kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz
- sudo tar -Jxf kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz -C /opt
- rm -f kendryte-toolchain-ubuntu-amd64-8.2.0-20190409.tar.xz
script:
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, BRANCH=$BRANCH"
- cd tools/release
- chmod +x release.sh && ./release.sh || travis_terminate 1;
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then exit 0; fi
- time_now=$(date "+%Y_%m_%d_%H_%M_%S")
- cd bin
- firmware_dir=`ls`
- sudo sh -c "echo StrictHostKeyChecking no >>/etc/ssh/ssh_config"
- sshpass -p ${USER_PASSWD} scp -r $firmware_dir ${SERVER_USER}@${SERVER_ADDR}:${SERVER_FOLDER_PATH}/${curr_branch}/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ljk12345678/MF1_SDK.git
git@gitee.com:ljk12345678/MF1_SDK.git
ljk12345678
MF1_SDK
MF1_SDK
dev

搜索帮助