Skip to content

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

License

Notifications You must be signed in to change notification settings

codecov/example-cpp11_boost

 
 

Repository files navigation

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

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 36.6%
  • QMake 35.0%
  • C++ 23.6%
  • C 4.8%