Skip to content

Commit

Permalink
common: update CODECOV workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Apr 19, 2024
1 parent 3a208d6 commit 468ec61
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 98 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/scan_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ env:
SRC_CHECKERS: 0
OS: ubuntu
OS_VER: 22.04
COVERAGE: 1
TEST_BUILD: debug
FAULT_INJECTION: 1

Expand All @@ -32,5 +31,13 @@ jobs:
- name: Pull the image
run: cd $WORKDIR && ./pull-or-rebuild-image.sh

- name: Measure and upload code coverage
- name: Run the build
run: cd $WORKDIR && ./build-CI.sh

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
gcov: true
root_dir: /home/runner/work/pmdk/pmdk/
directory: /home/runner/work/pmdk/pmdk/
verbose: true
1 change: 0 additions & 1 deletion utils/docker/build-CI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ containerName=pmdk-${OS}-${OS_VER}

if [[ $MAKE_PKG -eq 0 ]] ; then command="./run-build.sh"; fi
if [[ $MAKE_PKG -eq 1 ]] ; then command="./run-build-package.sh"; fi
if [[ $COVERAGE -eq 1 ]] ; then command="./run-coverage.sh"; fi
if [[ "$COVERITY" -eq 1 ]]; then command="./run-coverity.sh"; fi

if [ -n "$DNS_SERVER" ]; then DNS_SETTING=" --dns=$DNS_SERVER "; fi
Expand Down
6 changes: 1 addition & 5 deletions utils/docker/images/Dockerfile.ubuntu-22.04
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2023, Intel Corporation
# Copyright 2016-2024, Intel Corporation

#
# Dockerfile - a 'recipe' for Docker to build an image of ubuntu-based
Expand Down Expand Up @@ -83,9 +83,6 @@ ENV PYTHON_DEPS "\
# Copy install valgrind script
COPY install-valgrind.sh install-valgrind.sh

# Copy script to download codecov script required in run-coverage.sh
COPY download-scripts.sh download-scripts.sh

# Update the Apt cache and install basic tools
RUN apt-get update && apt-get dist-upgrade -y \
&& apt-get install -y --no-install-recommends \
Expand All @@ -100,7 +97,6 @@ RUN apt-get update && apt-get dist-upgrade -y \
$COVERITY_DEPS \
$MISC_DEPS \
&& ./install-valgrind.sh ubuntu \
&& ./download-scripts.sh \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install $PYTHON_DEPS
Expand Down
39 changes: 0 additions & 39 deletions utils/docker/images/download-scripts.sh

This file was deleted.

51 changes: 0 additions & 51 deletions utils/docker/run-coverage.sh

This file was deleted.

0 comments on commit 468ec61

Please sign in to comment.