memgraph/tools/apollo/apollo_runs.yaml
Matej Ferencevic 4669e0ae7d Enable code coverage
Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2666
2020-02-13 11:15:45 +01:00

30 lines
1.1 KiB
YAML

- name: cppcheck
commands: |
export PATH=/opt/toolchain-v1/bin:$PATH
export LD_LIBRARY_PATH=/opt/toolchain-v1/lib:/opt/toolchain-v1/lib64
TIMEOUT=2400 ./cppcheck
infiles:
- cppcheck # cppcheck script
- ../../src # src source dir
- ../../tests # tests source dir
- ../../.git # git directory (used to find out changed files in commit)
- ../../.clang-format # clang-format config file
outfile_paths:
- \./memgraph/tools/apollo/\.cppcheck_errors
- name: code_coverage
type: data process
require_runs: ^unit__.+ # regex to match all unit runs
commands: |
export PATH=/opt/toolchain-v1/bin:$PATH
export LD_LIBRARY_PATH=/opt/toolchain-v1/lib:/opt/toolchain-v1/lib64
TIMEOUT=300 ./coverage_convert
infiles:
- coverage_convert # coverage_convert script
- coverage_parse_export # coverage_parse_export script
- apollo_archives.yaml # coverage archive export config
- ../../src # src source dir
outfile_paths:
- \./memgraph/tools/apollo/generated/\.coverage_summary
- \./memgraph/tools/apollo/generated/\coverage.json