X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=.cirrus.yml;h=43098905e4590fd28c134169f6515fa7c61aed7f;hb=9f58bf13c05dfa9335ac1693adaa84a73fc0c1f8;hp=58f79e477b624babd93802773e015f906000264d;hpb=34fbac43093dadf23db41b05916e5455cca189f4;p=awesomized%2Flibmemcached diff --git a/.cirrus.yml b/.cirrus.yml index 58f79e47..43098905 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -14,6 +14,15 @@ task: ports: RELEASE_12_1_0 freebsd_instance: image_family: freebsd-12-1 + 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 @@ -38,25 +47,30 @@ task: prepare_script: | mkdir build chown nobody build - chsh -s /bin/sh nobody + pw user mod nobody -s /bin/sh -d $(pwd)/build configure_script: | - sudo -E -u nobody cmake -S . -B build + 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: - gitter_script: | + 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-CI build for ${CIRRUS_BRANCH} on ${OS} [succeeded](https://cirrus-ci.org/tasg/${CIRRUS_TASK_ID})" + --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_script: | + gitter_failure_script: | curl -sS "${gitter}" \ --data-urlencode "level=error" \ - --data-urlencode "message=Cirrus-CI build for ${CIRRUS_BRANCH} on ${OS} [failed](https://cirrus-ci.org/tasg/${CIRRUS_TASK_ID})" + --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