Skip to content

Commit

Permalink
updating docker codecov-cli installation
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-at-startupmedia committed Oct 24, 2024
1 parent e577ec1 commit 7835d50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ ARG CODECOV_TOKEN_ARG

RUN apt-get update && \
apt-get install -y build-essential git curl bash jq && \
curl -L -o /usr/local/bin/codecov https://github.com/codecov/codecov-cli/releases/download/v0.7.5/codecovcli_alpine_x86_64 && \
curl -L -o /usr/local/bin/codecov https://github.com/codecov/codecov-cli/releases/download/v0.7.5/codecovcli_linux && \
chmod +x /usr/local/bin/codecov && \
ls /usr/local/bin/ && \
cd /opt/ && \
git clone --single-branch --branch ${GIT_BRANCH_ARG} https://github.com/joe-at-startupmedia/pmon3.git

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TEST_DIR_LOGS=$(shell cat $(TEST_FILE_CONFIG) | grep "directory:" | sed -n "1 p"
TEST_ARTIFACT_PATH=$(shell dirname "$(TEST_DIR_LOGS)")
DEFAULT_TEST_PACKAGES := "./..."
TEST_PACKAGES := $(or $(TEST_PACKAGES),$(DEFAULT_TEST_PACKAGES))
COVERAGE_OMISSION := '!/^(pmon3\/utils|pmon3\/test|pmon3\/cmd|pmon3\/cli\/cobra|pmon3\/pmond\/protos)/'
COVERAGE_OMISSION := '!/^(pmon3\/utils|pmon3\/test|pmon3\/cmd|pmon3\/cli\/cobra|pmon3\/protos)/'

all: help

Expand Down Expand Up @@ -105,7 +105,7 @@ run_test: clean make_test_app ## run the tests
run_test_cover: clean make_test_app ## run the tests and generate a coverage report
$(call print-target)
PROJECT_PATH=$(PROJECT_PATH) ARTIFACT_PATH=$(TEST_ARTIFACT_PATH) $(GO) test $(BUILD_FLAGS) -v -run $(TEST_REGEX) -p 1 -coverprofile=coverage.txt -coverpkg=$(TEST_PACKAGES) ./test/e2e/
awk $COVERAGE_OMISSION coverage.txt > coverage.out
awk $(COVERAGE_OMISSION) coverage.txt > coverage.out
rm -f coverage.txt

.PHONY: codecov
Expand Down

0 comments on commit 7835d50

Please sign in to comment.