Added parallel building and testing to speed up builds

This commit is contained in:
Snaipe 2015-09-27 13:59:40 +02:00
parent 50bc75f5fb
commit 906fec9444
2 changed files with 7 additions and 5 deletions

View file

@ -35,9 +35,8 @@ script:
-DCMAKE_BUILD_TYPE=${CONFIGURATION}
-DCMAKE_INSTALL_PREFIX=criterion-${TRAVIS_TAG}
..
- make
- make criterion_tests
- make test
- cmake --build . --target criterion_tests -- -j4
- ctest -j4
after_success:
- make gcov

View file

@ -15,8 +15,11 @@ environment:
matrix:
- COMPILER: mingw
GENERATOR: "MSYS Makefiles"
BUILD_OPT: -- -j4
- COMPILER: msvc
GENERATOR: "Visual Studio 14 2015"
CFLAGS: /MP
CXXFLAGS: /MP
clone_depth: 5
@ -56,8 +59,8 @@ before_deploy:
Push-AppveyorArtifact "../$archive.tar.bz2"
test_script:
- cmake --build . --target criterion_tests
- ps: try { ctest } catch { type Testing/Temporary/LastTest.log }
- cmake --build . --target criterion_tests %BUILD_OPT%
- ps: try { ctest -j4 } catch { type Testing/Temporary/LastTest.log }
#after_test:
# - 'make coveralls'