代码拉取完成,页面将自动刷新
同步操作将从 Martian/sipeed-kendryte-standalone-sdk 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
sudo: false
language: cpp
git:
submodules: false
addons:
apt:
packages:
- python
- python-pip
- git
- wget
- make
- cmake
- libncurses-dev
- flex
- bison
- gperf
- aria2
cache:
- pip
- directories:
- cache
before_install:
- export TOOLCHAIN_URL=https://github.com/kendryte/kendryte-gnu-toolchain/releases/download/v8.2.0-20190213/kendryte-toolchain-ubuntu-amd64-8.2.0-20190213.tar.gz
- export TOOLCHAIN=${TOOLCHAIN_URL##*/}
- |
if [ ! -f $TRAVIS_BUILD_DIR/cache/$TOOLCHAIN ]; then
echo "Download toolchain ..."
aria2c $TOOLCHAIN_URL -d $TRAVIS_BUILD_DIR/cache -o $TOOLCHAIN
else
echo "Toolchain is ready download in cache"
fi
- |
if [ ! -d $TRAVIS_BUILD_DIR/cache/kendryte-toolchain ]; then
echo "Extract toolchain ..."
tar -C $TRAVIS_BUILD_DIR/cache -zxvf $TRAVIS_BUILD_DIR/cache/$TOOLCHAIN
else
echo "Toolchain is ready extract in cache"
fi
install:
- export PATH=$TRAVIS_BUILD_DIR/cache/kendryte-toolchain/bin:$PATH
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/cache/kendryte-toolchain/bin:$LD_LIBRARY_PATH
- |
cd $TRAVIS_BUILD_DIR
export BRANCH=$(if [ "$TRAVIS_BRANCH" == "master" ]; then echo $TRAVIS_BRANCH; else echo "develop"; fi)
git clone --single-branch --branch $BRANCH https://github.com/kendryte/kendryte-standalone-demo.git
echo "Build branch $BRANCH"
script:
- export BUILD_DATE=$(date +%Y%m%d)
## Copy all example code
- |
cd $TRAVIS_BUILD_DIR/src
cp -rf $TRAVIS_BUILD_DIR/kendryte-standalone-demo/* .
mv $TRAVIS_BUILD_DIR/kendryte-standalone-demo ~/demo
## Check example code
- |
for DIR in $(ls $TRAVIS_BUILD_DIR/src)
do
echo "[MAKE]" $TRAVIS_BUILD_DIR/src/$DIR
cd $TRAVIS_BUILD_DIR/src/$DIR
if [ ! -f "Makefile" ]; then
COUNT=$(expr $(ls -1 *.c 2>/dev/null | wc -l) + $(ls -1 *.cpp 2>/dev/null | wc -l) + $(ls -1 *.S 2>/dev/null | wc -l))
if [ $COUNT -gt 0 ]; then
mkdir build && cd build
cmake -DPROJ=$DIR -DTOOLCHAIN=$TRAVIS_BUILD_DIR/cache/kendryte-toolchain/bin ../../../ || exit -1
make || exit -1
else
echo "[IGNORE]" $TRAVIS_BUILD_DIR/src/$DIR
fi
else
make || exit -1
fi
done
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。