Skip to content

Commit

Permalink
upload differently
Browse files Browse the repository at this point in the history
  • Loading branch information
martukas committed May 5, 2024
1 parent a5bebe8 commit 4b40be1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: 2.1

orbs:
codecov: codecov/[email protected]
jobs:
pre-commit-checks:
docker:
Expand Down Expand Up @@ -40,6 +41,9 @@ jobs:
command: |
./software/common/common.sh test --cov --no-checks
./software/common/common.sh cov_upload
- codecov/upload:
file: './software/common/coverage_reports/coverage.info'
flags: common

controller-tests:
machine:
Expand Down
10 changes: 6 additions & 4 deletions software/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ install_linux() {
protobuf-compiler
pip3 install -U pip
pip3 install nanopb
pip3 install codecov-cli
# pip3 install codecov-cli
pip3 install platformio==${PIO_VERSION}
source ${HOME}/.profile
}
Expand Down Expand Up @@ -165,9 +165,9 @@ run_checks() {
}

upload_coverage_reports() {
echo "Uploading coverage reports to Codecov"
# echo "Uploading coverage reports to Codecov"

echo "Generating test coverage reports for controller and common code..."
echo "Generating test coverage reports for common code..."

SRC_DIR=".pio/build/$COVERAGE_ENVIRONMENT"

Expand All @@ -188,7 +188,9 @@ upload_coverage_reports() {
rm $COVERAGE_OUTPUT_DIR/processed/test*
rm $COVERAGE_OUTPUT_DIR/processed/.pio*

codecovcli do-upload --flag common
# echo "Uploading to codecov..."

# codecovcli do-upload --flag common
}

generate_coverage_reports() {
Expand Down
2 changes: 1 addition & 1 deletion software/controller/controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ run_checks() {
upload_coverage_reports() {
echo "Uploading coverage reports to Codecov"

echo "Generating test coverage reports for controller and common code..."
echo "Generating test coverage reports for controller code..."

SRC_DIR=".pio/build/$COVERAGE_ENVIRONMENT"

Expand Down

0 comments on commit 4b40be1

Please sign in to comment.