代码拉取完成,页面将自动刷新
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}/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。