From: Michael Wallner Date: Mon, 14 Dec 2020 22:28:40 +0000 (+0100) Subject: travis: release packages X-Git-Tag: 1.1.0-beta1~57 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f2f75562d4db582886d7693d9a6618dbe0ed3406;p=awesomized%2Flibmemcached travis: release packages --- diff --git a/.travis.yml b/.travis.yml index cdfc1149..bda3538e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,39 +25,51 @@ addons: env: - CMAKE_BUILD_TYPE=Debug BUILD_TESTING=true ENABLE_SASL=true ENABLE_HASH_HSIEH=true CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" + - CMAKE_BUILD_TYPE=Release ENABLE_SASL=true ENABLE_HASH_HSIEH=true install: - | - git clone --depth 1 -b 1.6.7 https://github.com/memcached/memcached - cd memcached - ./autogen.sh - CFLAGS="-O2 -pipe" ./configure \ - --prefix=/opt \ - --disable-coverage \ - --disable-docs \ - --disable-dependency-tracking \ - --enable-sasl \ - --enable-sasl-pwdb \ - ; - make -j2 - make install - cd .. + if test "$CMAKE_BUILT_TYPE" == "Debug"; then + git clone --depth 1 -b 1.6.7 https://github.com/memcached/memcached + cd memcached + ./autogen.sh + CFLAGS="-O2 -pipe" ./configure \ + --prefix=/opt \ + --disable-coverage \ + --disable-docs \ + --disable-dependency-tracking \ + --enable-sasl \ + --enable-sasl-pwdb \ + ; + make -j2 + make install + cd .. + endif before_script: - mkdir build script: - - cd build - - cmake -DMEMCACHED_BINARY=/opt/bin/memcached .. - - make -j2 VERBOSE=1 - - make test VERBOSE=1 - - make install DESTDIR=/tmp + - | + cd build + if test "$CMAKE_BUILD_TYPE" == "Debug"; then + cmake -DMEMCACHED_BINARY=/opt/bin/memcached .. + make -j2 VERBOSE=1 + make test VERBOSE=1 + make install DESTDIR=/tmp + else + cmake .. + make -j2 + make package + cmake -DCPACK_COMPONENT_INSTALL=ON . + make package + fi after_failure: - - cat Testing/Temporary/LastTest.log || true + - test "$CMAKE_BUILD_TYPE" == "Debug" && cat Testing/Temporary/LastTest.log || true after_success: - - bash <(curl -s https://codecov.io/bash) + - test "$CMAKE_BUILD_TYPE" == "Debug" && bash <(curl -s https://codecov.io/bash) notifications: webhooks: