From a8dae86e0829e4fa9a801a004d1f88d4b131b5ba Mon Sep 17 00:00:00 2001 From: Gudmundur Adalsteinsson Date: Fri, 16 Jul 2021 11:10:04 +0000 Subject: [PATCH] Remove old ci script --- ci_build.sh | 69 ----------------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100755 ci_build.sh diff --git a/ci_build.sh b/ci_build.sh deleted file mode 100755 index 262559f..0000000 --- a/ci_build.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env bash - -set -x -set -e - -BUILD_TYPE=${BUILD_TYPE:-cmake} -ZMQ_VERSION=${ZMQ_VERSION:-4.3.4} -ENABLE_DRAFTS=${ENABLE_DRAFTS:-OFF} -COVERAGE=${COVERAGE:-OFF} -LIBZMQ=${PWD}/libzmq-build -CPPZMQ=${PWD}/cppzmq-build -# Travis machines have 2 cores -JOBS=2 - -libzmq_install() { - curl -L https://github.com/zeromq/libzmq/archive/v"${ZMQ_VERSION}".tar.gz \ - >zeromq.tar.gz - tar -xvzf zeromq.tar.gz - if [ "${BUILD_TYPE}" = "cmake" ] ; then - cmake -Hlibzmq-${ZMQ_VERSION} -B${LIBZMQ} -DWITH_PERF_TOOL=OFF \ - -DZMQ_BUILD_TESTS=OFF \ - -DCMAKE_BUILD_TYPE=Release \ - -DENABLE_DRAFTS=${ENABLE_DRAFTS} - cmake --build ${LIBZMQ} -- -j${JOBS} - elif [ "${BUILD_TYPE}" = "pkgconfig" ] ; then - pushd . - cd libzmq-${ZMQ_VERSION} - ./autogen.sh && - ./configure --prefix=${LIBZMQ} && - make -j${JOBS} - make install - popd - fi -} - - -# build zeromq first -cppzmq_build() { - pushd . - CMAKE_PREFIX_PATH=${LIBZMQ} \ - cmake -H. -B${CPPZMQ} -DENABLE_DRAFTS=${ENABLE_DRAFTS} \ - -DCOVERAGE=${COVERAGE} \ - ${CMAKE_CPP_STD:-} - cmake --build ${CPPZMQ} -- -j${JOBS} - popd -} - -cppzmq_tests() { - pushd . - cd ${CPPZMQ} - ctest -V -j${JOBS} - popd -} - -cppzmq_demo() { - pushd . - CMAKE_PREFIX_PATH=${LIBZMQ}:${CPPZMQ} \ - cmake -Hdemo -Bdemo/build - cmake --build demo/build - cd demo/build - ctest -V - popd -} - -if [ "${ZMQ_VERSION}" != "" ] ; then libzmq_install ; fi - -cppzmq_build -cppzmq_tests -cppzmq_demo