Skip to content

Commit

Permalink
esp/ci: Fix distro name used in upload_to_http job
Browse files Browse the repository at this point in the history
  • Loading branch information
gerekon committed Apr 8, 2022
1 parent 554a6c2 commit 537b976
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ upload_to_http:
- *use_ci_tools
script:
- cit_add_ssh_key "${HTTP_UPLOAD_KEY}"
- ARCHIVE_NAME=$(cat ${DIST_ART_DIR}/dist_name_linux-armel)
- ARCHIVE_NAME=$(cat ${DIST_ART_DIR}/dist_name_linux-armhf)
- pushd ${DIST_ART_DIR}
- scp ${ARCHIVE_NAME} ${HTTP_UPLOAD_DIR}/openocd/
- popd
Expand Down Expand Up @@ -220,25 +220,25 @@ create_coverage_reports:
- mkdir -p cov_infos
- mkdir -p dist
# Below lines copies all .info files into cov_infos folder
- >
- >
folder_list=$(ls -d build_test_app*);
for each_folder in $folder_list ;
do
do
cp ${each_folder}/*.info cov_infos;
done
- ls -la cov_infos/
# Creating a html report of coverage files.
# Creating a html report of coverage files.
- genhtml --ignore-errors source cov_infos/*.info -o lcov_html_report/
- tar czf dist/lcov_all_report.tar.gz lcov_html_report/
# Below lines collecting all coverage file names with '-a' flag for lcov merge command.
- >
- tar czf dist/lcov_all_report.tar.gz lcov_html_report/
# Below lines collecting all coverage file names with '-a' flag for lcov merge command.
- >
FILES="" ;
for each_file in cov_infos/*.info ;
do
do
FILES+=" -a ${each_file}" ;
done
- lcov ${FILES} -o cov_infos/merged.info
# Line in below creates a txt file from merged coverage file which includes coverage percentages.
# Line in below creates a txt file from merged coverage file which includes coverage percentages.
- lcov --rc lcov_list_width=150 --list cov_infos/merged.info > cov_infos/metrics_input.txt
- python3 tools/list_to_metrics.py --file cov_infos/metrics_input.txt

Expand Down

0 comments on commit 537b976

Please sign in to comment.