File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
LIBZMQ=${PWD} /libzmq-build
7
7
CPPZMQ=${PWD} /cppzmq-build
8
+ # Travis machines have 2 cores
9
+ JOBS=2
8
10
9
11
if [ " $DRAFT " = " 1" ] ; then
10
12
# if we enable drafts during the libzmq cmake build, the pkgconfig
@@ -21,7 +23,7 @@ install_zeromq() {
21
23
-DZMQ_BUILD_TESTS=OFF \
22
24
-DCMAKE_BUILD_TYPE=Release \
23
25
${ZEROMQ_CMAKE_FLAGS}
24
- cmake --build ${LIBZMQ}
26
+ cmake --build ${LIBZMQ} -- -j ${JOBS}
25
27
}
26
28
27
29
# build zeromq first
@@ -31,13 +33,13 @@ if [ "${ZMQ_VERSION}" != "" ] ; then install_zeromq ; fi
31
33
# build cppzmq
32
34
pushd .
33
35
ZeroMQ_DIR=${LIBZMQ} cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
34
- cmake --build ${CPPZMQ}
36
+ cmake --build ${CPPZMQ} -- -j ${JOBS}
35
37
cd ${CPPZMQ}
36
- ctest -V
38
+ ctest -V -j ${JOBS}
37
39
popd
38
40
39
41
# build cppzmq demo
40
42
ZeroMQ_DIR=${LIBZMQ} cppzmq_DIR=${CPPZMQ} cmake -Hdemo -Bdemo/build
41
43
cmake --build demo/build
42
44
cd demo/build
43
- ctest
45
+ ctest -V
You can’t perform that action at this time.
0 commit comments