X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.travis.yml;h=58112eb1ea56ddb3e8a3ad8538d577f7a3d913d9;hb=7eb608bb69da0e37fc7edb1c60fb4a207f32b76f;hp=f24bf6050670e9940dd56b191b62bbd7dc4e4b1c;hpb=0246c3f543a3aff173a68db275ad64852410cc2d;p=m6w6%2Flibmemcached diff --git a/.travis.yml b/.travis.yml index f24bf605..58112eb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,40 +1,82 @@ -services: - - memcached +os: linux +dist: focal +language: cpp -addons: - apt: - packages: - - python-sphinx - - valgrind - - libevent-dev +jobs: + include: + - arch: arm64-graviton2 + virt: lxd + group: edge + - arch: arm64 + - arch: ppc64le + - arch: s390x -dist: bionic -language: cpp -compiler: - - gcc - - clang +branches: + only: + - v1.x + - travis + +addons: + apt: + packages: + - libevent-dev + - libsasl2-dev + - libtbb-dev env: -# prod - - BUILD=Release - - BUILD=Debug + - 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 -#before_install: -#install: +install: + - | + if test $CMAKE_BUILD_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 .. + fi before_script: - - echo stats settings | nc -q 0 localhost 11211 | column -t - - mkdir build + - mkdir build script: - - cmake -B build -S . -DCMAKE_BUILD_TYPE=${BUILD} - - make -C build - - make -C build test - -#before_cache: -#after_success: + - | + 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 build/Testing/Temporary/LastTest.log + - 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) -#after_script: +notifications: + webhooks: + urls: + - https://webhooks.gitter.im/e/796c8423962228333c54 + on_success: always + on_failure: change + on_start: never