CI: Replace codecov bash script with downloaded version for testing

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-08-19 08:26:35 +02:00
parent d518697a18
commit 4856a0d756
3 changed files with 1734 additions and 3 deletions

View file

@ -17,7 +17,7 @@ steps:
CODECOV_TOKEN:
from_secret: codecov_token
commands:
- docker-compose -f docker-compose.drone.yml exec -T photoprism make all test-js test-codecov install migrate
- docker-compose -f docker-compose.drone.yml exec -T photoprism make all test-js codecov-token test-codecov install migrate
when:
branch:
- develop

View file

@ -139,10 +139,12 @@ test-verbose:
test-race:
$(info Running all Go unit tests with race detection in verbose mode...)
$(GOTEST) -tags slow -race -timeout 60m -v ./pkg/... ./internal/...
codecov-token:
echo $(CODECOV_TOKEN)
test-codecov:
$(info Running all Go unit tests with code coverage report for codecov...)
go test -parallel 1 -count 1 -cpu 1 -failfast -tags slow -timeout 30m -coverprofile coverage.txt -covermode atomic ./pkg/... ./internal/...
scripts/codecov.sh
scripts/codecov.sh -t $(CODECOV_TOKEN)
test-coverage:
$(info Running all Go unit tests with code coverage report...)
go test -parallel 1 -count 1 -cpu 1 -failfast -tags slow -timeout 30m -coverprofile coverage.txt -covermode atomic ./pkg/... ./internal/...

File diff suppressed because it is too large Load diff