Commit c3f9489e authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

fix_artifacts: changed name to the combined coveraga.xml file: badges

creation looks for code-coverage.xml file.
parent a3fa9034
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -67,8 +67,9 @@ pages:
    COMMON_PATH: csp-lmc-common/docker
    MIDCSP_PATH: csp-lmc-mid/docker
  script:
    - pip install junitparser
    - pip install --upgrade coverage     
    - pip3 install junitparser
      #update coverage o the last release
    - pip3 install --upgrade coverage     
    - cp -R $COMMON_PATH/build public
    - cp -R $MIDCSP_PATH/build/* public
    - ls -lR public
@@ -77,9 +78,10 @@ pages:
    - rm public/reports/csp-lmc-common-unit-tests.xml public/reports/csp-lmc-mid-unit-tests.xml
    - rm public/reports/csp-lmc-common-linting.xml public/reports/csp-lmc-mid-linting.xml
    - cd public
    - ls -laR      
    - coverage combine csp-lmc-common_coverage csp-lmc-mid_coverage
    - coverage xml -i
     # rename file because bagdges creation looks for code-coverage.xml file
    - mv coverage.xml in code-coverage.xml
  artifacts:
    paths:
      - public