[Notes] [Git][BuildGrid/buildgrid][mablanch/00-update-fix-ci] Fix CI coverage report combination and generation



Title: GitLab

Martin Blanchard pushed to branch mablanch/00-update-fix-ci at BuildGrid / buildgrid

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -57,14 +57,17 @@ coverage:
    57 57
       coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/'
    
    58 58
       script:
    
    59 59
         - python3 -m pip install --user --editable ".[tests]"
    
    60
    -    - mkdir report
    
    61
    -    - cd report
    
    62
    -    - cp ../coverage/coverage.* .
    
    63
    -    - ls coverage.*
    
    64
    -    - coverage combine --rcfile=../.coveragerc -a coverage.*
    
    65
    -    - coverage report --rcfile=../.coveragerc -m
    
    60
    +    - cd coverage/
    
    61
    +    - ls -l .
    
    62
    +    - python3 -m coverage combine --rcfile=../.coveragerc --append coverage.*
    
    63
    +    - python3 -m coverage html --rcfile=../.coveragerc --directory coverage/
    
    64
    +    - python3 -m coverage report --rcfile=../.coveragerc --show-missing
    
    65
    +    - python3 -m coverage erase --rcfile=../.coveragerc
    
    66 66
       dependencies:
    
    67 67
       - tests-debian-stretch
    
    68
    +  artifacts:
    
    69
    +    paths:
    
    70
    +    - coverage/
    
    68 71
     
    
    69 72
     # Deploy, only for merges which land on master branch.
    
    70 73
     #
    
    ... ... @@ -79,5 +82,3 @@ pages:
    79 82
       artifacts:
    
    80 83
         paths:
    
    81 84
         - public/
    82
    -  only:
    
    83
    -  - master



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]