Use normal build if it is not a CMAKE project

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui 2019-03-15 15:13:16 +08:00
parent 9086649c51
commit 8912c478d3
1 changed files with 8 additions and 3 deletions

View File

@ -57,7 +57,12 @@ script:
do
echo "[MAKE]" $TRAVIS_BUILD_DIR/src/$DIR
cd $TRAVIS_BUILD_DIR/src/$DIR
if [ ! -f "$Makefile" ]; then
mkdir build && cd build
cmake -DPROJ=$DIR -DTOOLCHAIN=$TRAVIS_BUILD_DIR/cache/kendryte-toolchain/bin ../../../ || exit -1
make || exit -1
else
make || exit -1
fi
done