mirror of
https://github.com/bkthomps/Containers.git
synced 2025-12-05 15:15:49 +00:00
Add code coverage (#22)
This commit is contained in:
@@ -2,12 +2,13 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
docker:
|
docker:
|
||||||
- image: mickare/cmake-clang
|
- image: rikorose/gcc-cmake:gcc-8
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" .
|
- run: cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" .
|
||||||
- run: cmake --build . --target Containers -- -j 2
|
- run: cmake --build . --target Containers -- -j 2
|
||||||
- run: ./Containers
|
- run: ./Containers
|
||||||
|
- run: bash <(curl -s https://codecov.io/bash)
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
|||||||
3
.codecov.yml
Normal file
3
.codecov.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
ignore:
|
||||||
|
- "tst"
|
||||||
|
|
||||||
@@ -3,6 +3,8 @@ project(Containers C)
|
|||||||
|
|
||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
|
|
||||||
|
set(CMAKE_C_FLAGS "-g -O0 -Wall -fprofile-arcs -ftest-coverage")
|
||||||
|
|
||||||
add_executable(Containers tst/test.c tst/test.h
|
add_executable(Containers tst/test.c tst/test.h
|
||||||
src/array.c src/array.h tst/array.c
|
src/array.c src/array.h tst/array.c
|
||||||
src/vector.c src/vector.h tst/vector.c
|
src/vector.c src/vector.h tst/vector.c
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
[](https://circleci.com/gh/bkthomps/Containers/tree/master)
|
[](https://circleci.com/gh/bkthomps/Containers/tree/master)
|
||||||
|
[](https://codecov.io/gh/bkthomps/Containers)
|
||||||
[](https://codedocs.xyz/bkthomps/Containers/)
|
[](https://codedocs.xyz/bkthomps/Containers/)
|
||||||
|
|
||||||
# Containers
|
# Containers
|
||||||
|
|||||||
Reference in New Issue
Block a user