libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
run: cmake -S . -B build
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
+<?php
+}
+
+function steps_test() {
+?>
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
steps_setenv($splat_map);
steps_getdeps();
steps_build();
+ steps_test();
steps_package();
steps_notify();
}
env:
# defaults
INSTALL_MEMCACHED: memcached
- ENABLE_SASL: "ON"
+ ENABLE_SASL: "OFF" # ^ almost no memcached distribution package has built in sasl support
ENABLE_HASH_HSIEH: "ON"
ENABLE_DTRACE: "OFF"
OS_VND: <?=DEF["os"]?> #
CXXFLAGS: "-O0 --coverage"
INSTALL_MEMCACHED: ""
MEMCACHED_PREFIX: "/tmp"
+ ENABLE_SASL: "ON"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
runs-on: <?=DEF["macOS"]?> #
env:
CMAKE_BUILD_TYPE: "Debug"
- ENABLE_SASL: "OFF"
BUILD_TESTING: "ON"
VERBOSE: "ON"
CFLAGS: "-O0 --coverage"
runs-on: <?=DEF["macOS"]?> #
env:
CMAKE_BUILD_TYPE: "Release"
- ENABLE_SASL: "OFF"
BUILD_DOCS_MANGZ: "ON"
<?php env_override("macOS")?>
continue-on-error: true
runs-on: <?=DEF["Windows"]?> #
env:
CMAKE_BUILD_TYPE: "Release"
- ENABLE_SASL: "OFF"
BISON_ROOT: "C:/msys64/usr"
FLEX_ROOT: "C:/msys64/usr"
<?php env_override("Windows")?>
continue-on-error: true
- defaults:
- run:
- shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
env:
# defaults
INSTALL_MEMCACHED: memcached
- ENABLE_SASL: "ON"
+ ENABLE_SASL: "OFF" # ^ almost no memcached distribution package has built in sasl support
ENABLE_HASH_HSIEH: "ON"
ENABLE_DTRACE: "OFF"
OS_VND: Linux #
CXXFLAGS: "-O0 --coverage"
INSTALL_MEMCACHED: ""
MEMCACHED_PREFIX: "/tmp"
+ ENABLE_SASL: "ON"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
runs-on: macos-10.15 #
env:
CMAKE_BUILD_TYPE: "Debug"
- ENABLE_SASL: "OFF"
BUILD_TESTING: "ON"
VERBOSE: "ON"
CFLAGS: "-O0 --coverage"
libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
runs-on: macos-10.15 #
env:
CMAKE_BUILD_TYPE: "Release"
- ENABLE_SASL: "OFF"
BUILD_DOCS_MANGZ: "ON"
OS_VND: macOS #
OS_VER: macos-10.15 #
libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
runs-on: windows-2019 #
env:
CMAKE_BUILD_TYPE: "Release"
- ENABLE_SASL: "OFF"
BISON_ROOT: "C:/msys64/usr"
FLEX_ROOT: "C:/msys64/usr"
OS_VND: Windows #
CC_VND: msvc #
CC_VER: cur #
continue-on-error: true
- defaults:
- run:
- shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
libevent-dev \
libsasl2-dev \
libtbb-dev \
- m2r \
python3-sphinx \
${INSTALL_MEMCACHED} \
${INSTALL_CC} ${INSTALL_CXX}
- name: Build all with ${{ env.CXX }} ${{ env.CXXFLAGS }}
run: cmake --build build -j2
- name: Test
- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp
- name: Failed tests log
if: ${{ failure() }}
run: cat build/Testing/Temporary/LastTest.log || true
add_custom_command(
OUTPUT "${SPHINX_HTML_DIR}"
COMMAND
- ${SPHINX_EXECUTABLE}
- -q -b html
- -c "${SPHINX_BUILD_DIR}"
- -d "${SPHINX_CACHE_DIR}"
- ${SPHINX_OPTIONS}
- "${SPHINX_SOURCE_DIR}"
- "${SPHINX_HTML_DIR}"
- COMMAND ${CMAKE_COMMAND} -E touch html
+ ${SPHINX_EXECUTABLE}
+ -q -b html
+ -c "${SPHINX_BUILD_DIR}"
+ -d "${SPHINX_CACHE_DIR}"
+ ${SPHINX_OPTIONS}
+ "${SPHINX_SOURCE_DIR}"
+ "${SPHINX_HTML_DIR}"
+ COMMAND
+ ${CMAKE_COMMAND} -E touch "${SPHINX_HTML_DIR}"
BYPRODUCTS ${SPHINX_HTML_DIR}
DEPENDS "${DOCS_SOURCE}"
)
add_custom_command(
OUTPUT ${SPHINX_MAN_DIR}
COMMAND
- ${SPHINX_EXECUTABLE}
- -q -b man
- -c "${SPHINX_BUILD_DIR}"
- -d "${SPHINX_CACHE_DIR}"
- ${SPHINX_OPTIONS}
- "${SPHINX_SOURCE_DIR}"
- "${SPHINX_MAN_DIR}"
- COMMAND ${CMAKE_COMMAND} -E touch man
+ ${SPHINX_EXECUTABLE}
+ -q -b man
+ -c "${SPHINX_BUILD_DIR}"
+ -d "${SPHINX_CACHE_DIR}"
+ ${SPHINX_OPTIONS}
+ "${SPHINX_SOURCE_DIR}"
+ "${SPHINX_MAN_DIR}"
+ COMMAND
+ ${CMAKE_COMMAND} -E touch "${SPHINX_MAN_DIR}"
BYPRODUCTS ${SPHINX_MAN_DIR}
DEPENDS "${DOCS_SOURCE}"
)
if(GZIP)
set(MAN_EXT ".gz")
add_custom_target(man_gz ALL
- ${GZIP} -kf ${SPHINX_MAN_DIR}/*.{1,3}
+ COMMAND ${GZIP} -kf
+ ${SPHINX_MAN_DIR}/*.1
+ ${SPHINX_MAN_DIR}/*.3
DEPENDS ${SPHINX_MAN_DIR}
- )
+ ) # some shells do not support braced glob patterns
endif()
endif()