Skip to content

Commit

Permalink
Problem: not all cores used on Travis
Browse files Browse the repository at this point in the history
Solution: As Travis enables 2 cores let's use them both
  • Loading branch information
kurdybacha committed May 13, 2018
1 parent 3807107 commit 6cd57fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -e

LIBZMQ=${PWD}/libzmq-build
CPPZMQ=${PWD}/cppzmq-build
# Travis machines have 2 cores
JOBS=2

if [ "$DRAFT" = "1" ] ; then
# if we enable drafts during the libzmq cmake build, the pkgconfig
Expand All @@ -21,7 +23,7 @@ install_zeromq() {
-DZMQ_BUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release \
${ZEROMQ_CMAKE_FLAGS}
cmake --build ${LIBZMQ}
cmake --build ${LIBZMQ} -- -j${JOBS}
}

# build zeromq first
Expand All @@ -31,13 +33,13 @@ if [ "${ZMQ_VERSION}" != "" ] ; then install_zeromq ; fi
# build cppzmq
pushd .
ZeroMQ_DIR=${LIBZMQ} cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
cmake --build ${CPPZMQ}
cmake --build ${CPPZMQ} -- -j${JOBS}
cd ${CPPZMQ}
ctest -V
ctest -V -j${JOBS}
popd

# build cppzmq demo
ZeroMQ_DIR=${LIBZMQ} cppzmq_DIR=${CPPZMQ} cmake -Hdemo -Bdemo/build
cmake --build demo/build
cd demo/build
ctest
ctest -V

0 comments on commit 6cd57fa

Please sign in to comment.