Commit 072619e7 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

fix_artifacts: adjust path.

parent a1a3b374
Loading
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -70,21 +70,19 @@ pages:
    - 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
    - cp -R $COMMON_PATH/build build
    - cp -R $MIDCSP_PATH/build/* build
    - ls -lR 
    - junitparser merge public/reports/csp-lmc-common-unit-tests.xml public/reports/csp-lmc-mid-unit-tests.xml public/reports/unit-tests.xml
    - cp -R public/reports ./build
    - junitparser merge build/reports/csp-lmc-common-unit-tests.xml build/reports/csp-lmc-mid-unit-tests.xml build/reports/unit-tests.xml
    - ls -lR 
    - junitparser merge public/reports/csp-lmc-common-linting.xml public/reports/csp-lmc-mid-linting.xml public/reports/linting.xml
    - 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
    - cp ./public/reports/linting.xml ./build/reports
    - coverage combine ./public/csp-lmc-common_coverage csp-lmc-mid_coverage
    - junitparser merge build/reports/csp-lmc-common-linting.xml build/reports/csp-lmc-mid-linting.xml build/reports/linting.xml
    - rm build/reports/csp-lmc-common-unit-tests.xml build/reports/csp-lmc-mid-unit-tests.xml
    - rm build/reports/csp-lmc-common-linting.xml build/reports/csp-lmc-mid-linting.xml
    - coverage combine ./build/csp-lmc-common_coverage build/csp-lmc-mid_coverage
    - coverage xml -i
     # rename file because bagdges creation looks for code-coverage.xml file
    - cp coverage.xml .build/reports/code-coverage.xml
    - cp coverage.xml .public/reports/code-coverage.xml
    - mv coverage.xml .build/reports/code-coverage.xml
    - cp -R build public
  artifacts:
    paths:
      - public