https://github.com/codecov/example-vala
https://github.com/codecov/example-vala
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codecov/example-vala
- Owner: codecov
- License: mit
- Created: 2016-06-24T19:02:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-22T21:35:49.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T10:04:21.433Z (11 months ago)
- Language: Vala
- Size: 10.7 KB
- Stars: 12
- Watchers: 13
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# [Codecov][1] Vala Example
## Guide
### Travis Setup
Add to your `.travis.yml` file.
```yml
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++](https://github.com/codecov/example-c)
apply. The ``--ccode`` and ``--debug`` flags have to be specified so that the
C coverage can be properly mapped to the original sources.
```bash
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][5], specify the `-D b_coverage=true` project option.
```bash
mkdir build && cd build
meson -D b_coverage=true ..
ninja
ninja test
```
## Caveats
### Private Repos
Add to your `.travis.yml` file.
```yml
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](mailto:support@codecov.io)
[1]: https://codecov.io/
[5]: http://mesonbuild.com/