Skip to content
master
Switch branches/tags
Code
This branch is 5 commits ahead, 11 commits behind richelbilderbeek:master.
Contribute

Codecov qmake_gcc_cpp11_boost_test_gcov Example

codecov.io Build Status FOSSA Status

This GitHub is part of the Travis C++ Tutorial.

The goal of this project is to have a clean Travis CI build, with specs:

  • Build system: qmake
  • C++ compiler: gcc
  • C++ version: C++11
  • Libraries: STL and Boost, demonstrating Boost.Test
  • Code coverage: yes
  • Source: multiple files

Guide

Travis Setup

Add to your .travis.yml file.

language: cpp
compiler: gcc
addons:
  apt:
    packages: libboost-all-dev

before_install:
  - sudo pip install codecov

script:
  - ./build_test.sh

after_success:
  - codecov

Produce Coverage Reports

gcov-5

gcov-5 main_test.cpp
gcov-5 my_functions.cpp

Private Repo

Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending -t <your upload token> to you where you upload reports.

Links

License

FOSSA Status

About

Minimal project that uses qmake, GCC, C++11, Boost, Boost.Test, gcov and is tested by Travis CI

Resources

License

Packages

No packages published