X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.travis.yml;h=58112eb1ea56ddb3e8a3ad8538d577f7a3d913d9;hb=33617a7a1c94a9e79bef71fbffa48033cf87dbdf;hp=f7cc6b1aa9c6c7f12e67ab830002f20ed13b258b;hpb=048b71a1cdc0200f3bad7bbde7a2e8785079e729;p=awesomized%2Flibmemcached diff --git a/.travis.yml b/.travis.yml index f7cc6b1a..58112eb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,16 @@ os: linux dist: focal -arch: - - arm64 - - ppc64le - - s390x language: cpp +jobs: + include: + - arch: arm64-graviton2 + virt: lxd + group: edge + - arch: arm64 + - arch: ppc64le + - arch: s390x + branches: only: - v1.x @@ -20,39 +25,53 @@ 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_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: - 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: