Add a make coverage target to merge all other coverages, and upload to codecov

This commit is contained in:
louiz’
2016-12-10 20:11:30 +01:00
parent 3961df3d54
commit 4860201d8c
3 changed files with 20 additions and 13 deletions
+5 -7
View File
@@ -89,21 +89,19 @@ build:rpm:
script:
- cmake .. -DCMAKE_CXX_COMPILER=${COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${BOTAN} ${CARES} ${SYSTEMD} ${LIBIDN} ${LITESQL}
- make biboumi -j$(nproc || echo 1)
- make check
- make coverage_check -j$(nproc || echo 1)
- make coverage_e2e -j$(nproc || echo 1)
- make coverage
- mkdir tests_outputs && pushd tests_outputs && make coverage_e2e -j$(nproc || echo 1) -C .. && popd
- if [ ! -z $COVERALLS_TOKEN -a ! -z $UPLOAD_TO_COVERALLS ]; then coveralls-lcov --repo-token $COVERALLS_TOKEN coverage_e2e.info.cleaned; fi
- bash <(curl -s https://codecov.io/bash)
artifacts:
paths:
- build/coverage/
- build/coverage_test_suite/
- build/coverage_e2e/
- build/tests_outputs/
- build/coverage_total/
when: always
name: $CI_PROJECT_NAME-test-$CI_BUILD_ID
test:debian:
variables:
UPLOAD_TO_COVERALLS: "true"
image: biboumi-test-debian:latest
<<: *basic_test