X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.travis.yml;h=58112eb1ea56ddb3e8a3ad8538d577f7a3d913d9;hb=58d5871e9d950c79f959048bb1b8316afcc298e1;hp=bda3538e99772376cb3ae59c79b5c31f59bf94a0;hpb=f2f75562d4db582886d7693d9a6618dbe0ed3406;p=m6w6%2Flibmemcached diff --git a/.travis.yml b/.travis.yml index bda3538e..58112eb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,8 @@ env: install: - | - if test "$CMAKE_BUILT_TYPE" == "Debug"; then + if test $CMAKE_BUILD_TYPE == Debug + then git clone --depth 1 -b 1.6.7 https://github.com/memcached/memcached cd memcached ./autogen.sh @@ -44,7 +45,7 @@ install: make -j2 make install cd .. - endif + fi before_script: - mkdir build @@ -52,7 +53,8 @@ before_script: script: - | cd build - if test "$CMAKE_BUILD_TYPE" == "Debug"; then + if test $CMAKE_BUILD_TYPE == Debug + then cmake -DMEMCACHED_BINARY=/opt/bin/memcached .. make -j2 VERBOSE=1 make test VERBOSE=1 @@ -66,10 +68,10 @@ script: fi after_failure: - - test "$CMAKE_BUILD_TYPE" == "Debug" && cat Testing/Temporary/LastTest.log || true + - test $CMAKE_BUILD_TYPE == Debug && cat Testing/Temporary/LastTest.log || true after_success: - - test "$CMAKE_BUILD_TYPE" == "Debug" && bash <(curl -s https://codecov.io/bash) + - test $CMAKE_BUILD_TYPE == Debug && bash <(curl -s https://codecov.io/bash) notifications: webhooks: