Skip to content

codecov/example-vala

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Codecov Vala Example

Guide

Travis Setup

Add to your .travis.yml file.

language: c
after_success:
  - bash <(curl -s https://codecov.io/bash)

Produce Coverage Reports

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.vala

Meson

To enable coverage with Meson, specify the -D b_coverage=true project option.

mkdir build && cd build
meson -D b_coverage=true ..
ninja
ninja test

Caveats

Private Repos

Add to your .travis.yml file.

after_success:
  - bash <(curl -s https://codecov.io/bash) -t uuid-repo-token
  1. More documentation at https://docs.codecov.io
  2. Configure codecov through the codecov.yml https://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

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages