mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
Remove old ci script
This commit is contained in:
parent
4808d6df95
commit
a8dae86e08
69
ci_build.sh
69
ci_build.sh
@ -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
|
Loading…
Reference in New Issue
Block a user