Use normal build if it is not a CMAKE project
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
9086649c51
commit
8912c478d3
11
.travis.yml
11
.travis.yml
|
@ -57,7 +57,12 @@ script:
|
|||
do
|
||||
echo "[MAKE]" $TRAVIS_BUILD_DIR/src/$DIR
|
||||
cd $TRAVIS_BUILD_DIR/src/$DIR
|
||||
mkdir build && cd build
|
||||
cmake -DPROJ=$DIR -DTOOLCHAIN=$TRAVIS_BUILD_DIR/cache/kendryte-toolchain/bin ../../../ || exit -1
|
||||
make || exit -1
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue