From: Michael Wallner Date: Mon, 9 Nov 2020 17:20:16 +0000 (+0100) Subject: move BSD builds to sourcehut X-Git-Tag: 1.1.0-beta1~123 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d2ce3bd7a442b85c6c6ae4adeac3511d0d02028a;p=m6w6%2Flibmemcached move BSD builds to sourcehut --- diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml new file mode 100644 index 00000000..673843b8 --- /dev/null +++ b/.builds/freebsd.yml @@ -0,0 +1,41 @@ +image: freebsd/latest +packages: + - autotools + - bison + - cmake + - cyrus-sasl + - flex + - libevent + - pkgconf + - tbb +sources: + - https://github.com/m6w6/libmemcached +environment: + CMAKE_BUILD_TYPE: Debug + BUILD_TESTING: "ON" + ENABLE_HASH_HSIEH: "ON" + ENABLE_MEMASLAP: "ON" + ENABLE_SASL: "ON" + VERBOSE: "ON" + MEMCACHED_BINARY: "/home/build/memcached/work/stage/home/build/bin/memcached" +tasks: + - memcached: | + ln -s /usr/ports/Mk . + ln -s /usr/ports/Templates . + cp -R /usr/ports/databases/memcached . + cd memcached + echo bin/memcached > pkg-plist + make all install PREFIX=/home/build \ + INSTALL_AS_USER=1 NO_PKG_REGISTER=1 \ + SASLPWDB_CONFIGURE_ENABLE=sasl-pwdb \ + OPTIONS_SET="SASL SASLPWDB" \ + OPTIONS_DEFINE="SASL SASLPWDB" + - configure: | + cmake -S libmemcached -B build + - build: | + make -C build -j2 all + - test: | + make -C build -j2 test/fast + - install: | + make -C build install DESTDIR=/tmp + diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml new file mode 100644 index 00000000..fe2ebca9 --- /dev/null +++ b/.builds/openbsd.yml @@ -0,0 +1,29 @@ +image: openbsd/latest +packages: + - bison + - cmake + - cyrus-sasl-- + - libevent + - memcached-- + - pkgconf + - sudo-- + - tbb +sources: + - https://github.com/m6w6/libmemcached +environment: + CMAKE_BUILD_TYPE: Debug + BUILD_TESTING: "ON" + ENABLE_HASH_HSIEH: "ON" + ENABLE_MEMASLAP: "OFF" + VERBOSE: "ON" + MEMCACHED_BINARY: "memcached" +tasks: + - configure: | + cmake -S libmemcached -B build + - build: | + make -C build -j2 all + - test: | + make -C build -j2 test/fast + - install: | + make -C build install DESTDIR=/tmp + diff --git a/.cirrus.yml b/.cirrus.yml deleted file mode 100644 index a7fc91a5..00000000 --- a/.cirrus.yml +++ /dev/null @@ -1,82 +0,0 @@ -env: - CMAKE_BUILD_TYPE: Debug - BUILD_TESTING: "ON" - ENABLE_SASL: "ON" - ENABLE_HASH_HSIEH: "ON" - ENABLE_DTRACE: "ON" - VERBOSE: "ON" - MEMCACHED_BINARY: "/usr/local/bin/memcached" - -task: - name: Freebsd - env: - gitter: ENCRYPTED[92e34815ac1a27681bf868c8299bfa37f3cb98c7d88156884c85dfb33e786bd3124c5d624721fb13735d23f7c57ead4b] - ports: RELEASE_12_1_0 - freebsd_instance: - image_family: freebsd-12-1 - cpu: 4 - memory: 8G - discover_script: | - sudo -u nobody ulimit -a - cat /etc/hosts - cat /etc/host.conf - cat /etc/resolv.conf - ifconfig - netstat - sysctl -a - dmesg - dependencies_script: | - pkg update - pkg upgrade -y - pkg install -y \ - autotools \ - bison \ - cmake \ - cyrus-sasl \ - flex \ - libevent \ - pkgconf \ - subversion \ - sudo \ - tbb - memcached_script: | - svn co https://svn.freebsd.org/ports/tags/${ports}/databases/memcached memcached - svn co https://svn.freebsd.org/ports/tags/${ports}/Mk /usr/ports/Mk - svn co https://svn.freebsd.org/ports/tags/${ports}/Templates /usr/ports/Templates - cd memcached - echo bin/memcached > pkg-plist - make all install \ - SASLPWDB_CONFIGURE_ENABLE=sasl-pwdb \ - OPTIONS_SET="SASL SASLPWDB" \ - OPTIONS_DEFINE="SASL SASLPWDB" - cd .. - prepare_script: | - mkdir build - chown nobody build - pw user mod nobody -s /bin/sh -d $(pwd)/build - configure_script: | - sudo -E -u nobody CFLAGS="-O0 --coverage" CXXFLAGS="-O0 --coverage" cmake -S . -B build - build_script: | - sudo -E -u nobody make -C build -j2 all - test_script: | - sysctl net.inet.tcp.msl=500 - sysctl net.inet.tcp.blackhole=0 - sysctl net.inet.udp.blackhole=0 - sudo -E -u nobody make -C build -j2 test/fast - install_script: | - sudo -E -u nobody make -C build install DESTDIR=/tmp - on_success: - codecov_script: | - bash <(curl -s https://codecov.io/bash) -x "llvm-cov gcov" - gitter_success_script: | - curl -sS "${gitter}" \ - --data-urlencode "level=info" \ - --data-urlencode "message=Cirrus [${CIRRUS_REPO_FULL_NAME}](https://github.com/${CIRRUS_REPO_FULL_NAME}/compare/${CIRRUS_LAST_GREEN_CHANGE}...${CIRRUS_CHANGE_IN_REPO}) (${CIRRUS_BRANCH}) [success](https://cirrus-ci.com/task/${CIRRUS_TASK_ID}) (${CIRRUS_OS})" - on_failure: - gitter_failure_script: | - curl -sS "${gitter}" \ - --data-urlencode "level=error" \ - --data-urlencode "message=Cirrus [${CIRRUS_REPO_FULL_NAME}](https://github.com/${CIRRUS_REPO_FULL_NAME}/compare/${CIRRUS_LAST_GREEN_CHANGE}...${CIRRUS_CHANGE_IN_REPO}) (${CIRRUS_BRANCH}) [failure](https://cirrus-ci.com/task/${CIRRUS_TASK_ID}) (${CIRRUS_OS})" - testlog_artifacts: - path: build/Testing/Temporary/LastTest.log - type: text/plain