forked from bblanchon/ArduinoJson
Travis: Assume CMake is installed
This commit is contained in:
@ -1,16 +1,5 @@
|
|||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
|
|
||||||
if [ "$(uname)" = 'Darwin' ]; then
|
|
||||||
URL=https://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz
|
|
||||||
CMAKE=/tmp/CMake.app/Contents/bin/cmake
|
|
||||||
CTEST=/tmp/CMake.app/Contents/bin/ctest
|
|
||||||
else
|
|
||||||
URL=https://cmake.org/files/v3.4/cmake-3.4.3-Linux-x86_64.tar.gz
|
|
||||||
CMAKE=/tmp/bin/cmake
|
|
||||||
CTEST=/tmp/bin/ctest
|
|
||||||
fi
|
|
||||||
curl -sS $URL | tar xz -C /tmp --strip 1
|
|
||||||
|
|
||||||
if [ -n "$GCC" ]; then
|
if [ -n "$GCC" ]; then
|
||||||
export CC="gcc-$GCC"
|
export CC="gcc-$GCC"
|
||||||
export CXX="g++-$GCC"
|
export CXX="g++-$GCC"
|
||||||
@ -28,6 +17,6 @@ else
|
|||||||
BUILD_TYPE="Release"
|
BUILD_TYPE="Release"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$CMAKE -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
|
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
|
||||||
$CMAKE --build .
|
cmake --build .
|
||||||
$CTEST --output-on-failure .
|
ctest --output-on-failure .
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh -eux
|
#!/bin/sh -eux
|
||||||
|
|
||||||
curl https://cmake.org/files/v3.4/cmake-3.4.0-Linux-x86_64.tar.gz | tar xz -C /tmp --strip 1
|
cmake -DCOVERAGE=true .
|
||||||
|
|
||||||
/tmp/bin/cmake -DCOVERAGE=true .
|
|
||||||
make
|
make
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user