mirror of
https://github.com/bkthomps/Containers.git
synced 2025-11-16 04:24:47 +00:00
Add code coverage (#22)
This commit is contained in:
@@ -2,12 +2,13 @@ version: 2
|
||||
jobs:
|
||||
build_and_test:
|
||||
docker:
|
||||
- image: mickare/cmake-clang
|
||||
- image: rikorose/gcc-cmake:gcc-8
|
||||
steps:
|
||||
- checkout
|
||||
- run: cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" .
|
||||
- run: cmake --build . --target Containers -- -j 2
|
||||
- run: ./Containers
|
||||
- run: bash <(curl -s https://codecov.io/bash)
|
||||
workflows:
|
||||
version: 2
|
||||
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_FLAGS "-g -O0 -Wall -fprofile-arcs -ftest-coverage")
|
||||
|
||||
add_executable(Containers tst/test.c tst/test.h
|
||||
src/array.c src/array.h tst/array.c
|
||||
src/vector.c src/vector.h tst/vector.c
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
[](https://circleci.com/gh/bkthomps/Containers/tree/master)
|
||||
[](https://codecov.io/gh/bkthomps/Containers)
|
||||
[](https://codedocs.xyz/bkthomps/Containers/)
|
||||
|
||||
# Containers
|
||||
|
||||
Reference in New Issue
Block a user