Update .travis-ci.yml to use cmake
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
This commit is contained in:
parent
ebe1657c8f
commit
93261d465f
50
.travis.yml
50
.travis.yml
@ -8,12 +8,6 @@ os:
|
|||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- staging
|
|
||||||
- trying
|
|
||||||
- master
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then brew update; brew install redis; fi
|
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then brew update; brew install redis; fi
|
||||||
|
|
||||||
@ -26,20 +20,38 @@ addons:
|
|||||||
- libc6-dev-i386
|
- libc6-dev-i386
|
||||||
- libc6-dbg:i386
|
- libc6-dbg:i386
|
||||||
- gcc-multilib
|
- gcc-multilib
|
||||||
|
- g++-multilib
|
||||||
- valgrind
|
- valgrind
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CFLAGS="-Werror"
|
- BITS="32"
|
||||||
- PRE="valgrind --track-origins=yes --leak-check=full"
|
- BITS="64"
|
||||||
- TARGET="32bit" TARGET_VARS="32bit-vars" CFLAGS="-Werror"
|
|
||||||
- TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
|
|
||||||
|
|
||||||
matrix:
|
script:
|
||||||
exclude:
|
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
||||||
- os: osx
|
if [ "$BITS" == "32" ]; then
|
||||||
env: PRE="valgrind --track-origins=yes --leak-check=full"
|
CFLAGS="-m32 -Werror";
|
||||||
|
CXXFLAGS="-m32 -Werror";
|
||||||
- os: osx
|
LDFLAGS="-m32";
|
||||||
env: TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
|
else
|
||||||
|
EXTRA_CMAKE_OPTS="-DENABLE_EXAMPLES:BOOL=ON";
|
||||||
script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE" && make $TARGET_VARS hiredis-example
|
CFLAGS="-Werror";
|
||||||
|
CXXFLAGS="-Werror";
|
||||||
|
fi;
|
||||||
|
else
|
||||||
|
TEST_PREFIX="valgrind --track-origins=yes --leak-check=full";
|
||||||
|
if [ "$BITS" == "32" ]; then
|
||||||
|
CFLAGS="-m32 -Werror";
|
||||||
|
CXXFLAGS="-m32 -Werror";
|
||||||
|
LDFLAGS="-m32";
|
||||||
|
else
|
||||||
|
EXTRA_CMAKE_OPTS="-DENABLE_EXAMPLES:BOOL=ON";
|
||||||
|
CFLAGS="-Werror";
|
||||||
|
CXXFLAGS="-Werror";
|
||||||
|
fi;
|
||||||
|
fi;
|
||||||
|
export CFLAGS CXXFLAGS LDFLAGS TEST_PREFIX EXTRA_CMAKE_OPTS
|
||||||
|
- mkdir build/ && cd build/
|
||||||
|
- cmake .. ${EXTRA_CMAKE_OPTS}
|
||||||
|
- make VERBOSE=1
|
||||||
|
- ctest -V
|
||||||
|
Loading…
Reference in New Issue
Block a user