mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 23:42:32 +02:00
Problem: not all cores used on Travis
Solution: As Travis enables 2 cores let's use them both
This commit is contained in:
parent
3807107f56
commit
6cd57fad17
10
ci_build.sh
10
ci_build.sh
@ -5,6 +5,8 @@ set -e
|
|||||||
|
|
||||||
LIBZMQ=${PWD}/libzmq-build
|
LIBZMQ=${PWD}/libzmq-build
|
||||||
CPPZMQ=${PWD}/cppzmq-build
|
CPPZMQ=${PWD}/cppzmq-build
|
||||||
|
# Travis machines have 2 cores
|
||||||
|
JOBS=2
|
||||||
|
|
||||||
if [ "$DRAFT" = "1" ] ; then
|
if [ "$DRAFT" = "1" ] ; then
|
||||||
# if we enable drafts during the libzmq cmake build, the pkgconfig
|
# if we enable drafts during the libzmq cmake build, the pkgconfig
|
||||||
@ -21,7 +23,7 @@ install_zeromq() {
|
|||||||
-DZMQ_BUILD_TESTS=OFF \
|
-DZMQ_BUILD_TESTS=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
${ZEROMQ_CMAKE_FLAGS}
|
${ZEROMQ_CMAKE_FLAGS}
|
||||||
cmake --build ${LIBZMQ}
|
cmake --build ${LIBZMQ} -- -j${JOBS}
|
||||||
}
|
}
|
||||||
|
|
||||||
# build zeromq first
|
# build zeromq first
|
||||||
@ -31,13 +33,13 @@ if [ "${ZMQ_VERSION}" != "" ] ; then install_zeromq ; fi
|
|||||||
# build cppzmq
|
# build cppzmq
|
||||||
pushd .
|
pushd .
|
||||||
ZeroMQ_DIR=${LIBZMQ} cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
|
ZeroMQ_DIR=${LIBZMQ} cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
|
||||||
cmake --build ${CPPZMQ}
|
cmake --build ${CPPZMQ} -- -j${JOBS}
|
||||||
cd ${CPPZMQ}
|
cd ${CPPZMQ}
|
||||||
ctest -V
|
ctest -V -j${JOBS}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# build cppzmq demo
|
# build cppzmq demo
|
||||||
ZeroMQ_DIR=${LIBZMQ} cppzmq_DIR=${CPPZMQ} cmake -Hdemo -Bdemo/build
|
ZeroMQ_DIR=${LIBZMQ} cppzmq_DIR=${CPPZMQ} cmake -Hdemo -Bdemo/build
|
||||||
cmake --build demo/build
|
cmake --build demo/build
|
||||||
cd demo/build
|
cd demo/build
|
||||||
ctest
|
ctest -V
|
||||||
|
Loading…
x
Reference in New Issue
Block a user