Skip to content

Commit 8ed9c1f

Browse files
committed
Use all the cores to build and try using absolute path for coverage file
1 parent 539f91c commit 8ed9c1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ commands:
2121
steps:
2222
- run:
2323
name: "Build the binary"
24-
command: cmake --build <<parameters.dir>> -j 2
24+
command: cmake --build <<parameters.dir>>
2525
- run:
2626
name: "Run the tests"
2727
command: cd <<parameters.dir>> && ctest -j2 -V
@@ -33,11 +33,11 @@ jobs:
3333
steps:
3434
- run:
3535
name: "Install required packages"
36-
command: sudo apt update && sudo apt install -y git cmake lcov gcc g++
36+
command: sudo apt update && sudo apt install -y git cmake ninja-build lcov gcc g++
3737
- full_checkout
3838
- run:
3939
name: "Configure GCC debug build"
40-
command: cmake -H. -B../Debug-build -DINCH_UNIT_TESTS=ON -DINCH_CODE_COVERAGE=ON -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_BUILD_TYPE=Debug
40+
command: cmake -GNinja -H. -B../Debug-build -DINCH_UNIT_TESTS=ON -DINCH_CODE_COVERAGE=ON -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_BUILD_TYPE=Debug
4141
- build_and_test:
4242
dir: ../Debug-build
4343
- run:
@@ -49,7 +49,7 @@ jobs:
4949
lcov --list coverage.info
5050
- codecov/upload:
5151
cli_args: '-v'
52-
file: ../Debug-build/coverage.info
52+
file: ${HOME}/Debug-build/coverage.info
5353
- coverage-reporter/send_report:
5454
coverage-reports: '../Debug-build/coverage.info'
5555
project-token: $CODACY_PROJECT_TOKEN

0 commit comments

Comments
 (0)