7 Star 21 Fork 3

百年孤独 / MaixPy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.54 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
Neucrack 提交于 2020-12-10 11:36 . update travis
language:
- c
compiler:
- gcc
cache:
directories:
- "${HOME}/.maixpy_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:
- master
stages:
- name: maixpy_build
jobs:
include:
- stage: maixpy_build
env: NAME="maixpy 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"
- chmod -R 777 $firmware_dir
- SSHPATH="$HOME/.ssh"
- rm -rf "$SSHPATH"
- mkdir -p "$SSHPATH"
- echo "${ACCESS_KEY}" > "$SSHPATH/id_rsa"
- chmod 600 "$SSHPATH/id_rsa"
- rsync -av --progress $firmware_dir ${SERVER_USER}@${SERVER_ADDR}:${SERVER_FOLDER_PATH}/${curr_branch}/
Python
1
https://gitee.com/QTDesign/MaixPy.git
git@gitee.com:QTDesign/MaixPy.git
QTDesign
MaixPy
MaixPy
master

搜索帮助

14c37bed 8189591 565d56ea 8189591