use make -j

This commit is contained in:
zhangyi 2019-07-05 10:37:21 +08:00
parent ab1624c0fe
commit 981124520c
2 changed files with 3 additions and 6 deletions

8
.travis.yml Normal file → Executable file
View File

@ -28,15 +28,11 @@ script:
- cd ./build - cd ./build
- if [ $USING_CMAKE -eq 1 ]; then - if [ $USING_CMAKE -eq 1 ]; then
cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt; cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt;
make;
export IPC_TARGET=test-ipc;
else else
qmake -o Makefile cpp-ipc.pro QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CXXFLAGS+=-std=gnu++1z; qmake -o Makefile cpp-ipc.pro QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_CXXFLAGS+=-std=gnu++1z;
make;
make -f MakefileTest;
export IPC_TARGET=test;
fi fi
- export LD_LIBRARY_PATH=../output:$LD_LIBRARY_PATH && ../output/$IPC_TARGET - make -j`getconf _NPROCESSORS_ONLN`
- export LD_LIBRARY_PATH=../output:$LD_LIBRARY_PATH && ../output/test-ipc
notifications: notifications:
slack: slack:

1
build/test/test.pro Normal file → Executable file
View File

@ -1,4 +1,5 @@
TEMPLATE = app TEMPLATE = app
TARGET = test-ipc
QT += core testlib QT += core testlib
QT -= gui QT -= gui