CI: Replace codecov bash script with downloaded version for testing
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
d518697a18
commit
4856a0d756
3 changed files with 1734 additions and 3 deletions
|
@ -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
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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/...
|
||||
|
|
1731
scripts/codecov.sh
1731
scripts/codecov.sh
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue