Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable support for code coverage #504

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Commits on Dec 7, 2021

  1. Enable code coverage for industrial ci

    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Make python coverage only available to colcon in ROS2
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Revert mercurial setup changes
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Fix curl not found in ROS1
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    temp
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Add lcov and find report command
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Add in coveralls.io option
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Fix .coverage not found
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Fix coveralls not found
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Fix wrong .coverage path
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use coveralls-merge
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Remove psutils installation
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use coveragepy combine report
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use coveragerc for files ignore
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use coveralls specific environment variables
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Avoid exit for pure c++ or python package
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Avoid coveragepy report error
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use target repo name
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Force Debug build during coverage build
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Expose .ici_coverage_report for coverage reports
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Run cd in subshell and expose coverage report files
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Some sed magic to remove identifiable absolute path
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Add support for ROS1 python unittest, Credit: @rarrais
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Move coveralls report merging inside, expose only merged json file
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use CODECOV env variable directly in function
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Sample travis report upload script
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Fix typo on sample travis report upload script
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Remove redundant files
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Display coveragepy installation elegantly
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Add Gitlab support
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    Fix some wrong versions of python
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Add Github Action coverage support
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Upgrade pip first
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Python report ignore everything from build and devel
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Wrong! Ignore devel instead
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Python ignore everything from build and devel
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Use include pattern instead of omit
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Update author copyrights
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Move coverage helper function into coverage.sh
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Streamline coverage upload script
    
    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    
    Abstract python pip installation
    
    install setup tool as well
    
    Move code coverage inside docker script
    Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    05ddfc7 View commit details
    Browse the repository at this point in the history
  2. Fix missing renaming (#3)

    agutenkunst authored and Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    9939330 View commit details
    Browse the repository at this point in the history
  3. Update doc

    agutenkunst authored and Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    06aa571 View commit details
    Browse the repository at this point in the history
  4. Remove duplicate error msg

    agutenkunst authored and Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    0d87580 View commit details
    Browse the repository at this point in the history
  5. Add missing export and source

    agutenkunst authored and Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    2786a6a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    68e359e View commit details
    Browse the repository at this point in the history
  7. Add uploading of coverage

    agutenkunst authored and Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    a5da1e4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    27e6d29 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    715fa49 View commit details
    Browse the repository at this point in the history
  10. Fix indent typo

    Signed-off-by: Chen Bainian <brian97cbn@gmail.com>
    Briancbn committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    bff1cc2 View commit details
    Browse the repository at this point in the history