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 a616e7b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 95 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/scan_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,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
3 changes: 0 additions & 3 deletions utils/docker/images/Dockerfile.ubuntu-22.04
Original file line number Diff line number Diff line change
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 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 a616e7b

Please sign in to comment.