Codecov Vala Example
Add to your .travis.yml file.
language: c after_success: - bash <(curl -s https://codecov.io/bash)Since Vala translate to C, the usage same directives for C/C++ apply. The --ccode and --debug flags have to be specified so that the C coverage can be properly mapped to the original sources.
valac --debug --ccode hello.vala gcc $(pkg-config --cflags --libs glib-2.0 gobject-2.0) -ftest-coverage -fprofile-arcs -o hello hello.c ./hello gcov hello.valaTo enable coverage with Meson, specify the -D b_coverage=true project option.
mkdir build && cd build meson -D b_coverage=true .. ninja ninja testAdd to your .travis.yml file.
after_success: - bash <(curl -s https://codecov.io/bash) -t uuid-repo-token- More documentation at https://docs.codecov.io
- Configure codecov through the
codecov.ymlhttps://docs.codecov.io/docs/codecov-yaml
We are happy to help if you have any questions. Please contact email our Support at support@codecov.io