1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-05 00:49:00 +02:00

Fixed codecover report

This commit is contained in:
Tim Voronov
2018-10-25 19:55:23 -04:00
parent 8f4e5c2519
commit 10c7273f07
2 changed files with 6 additions and 3 deletions

View File

@ -50,7 +50,6 @@ jobs:
- stage: test - stage: test
script: script:
- make cover - make cover
after_success:
- if [ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]; then bash <(curl -s https://codecov.io/bash); fi - if [ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]; then bash <(curl -s https://codecov.io/bash); fi
- stage: e2e - stage: e2e
before_script: before_script:

View File

@ -25,7 +25,11 @@ test:
go test -v -race ${DIR_PKG}/... go test -v -race ${DIR_PKG}/...
cover: cover:
ifneq ($(CODECOV_TOKEN), )
go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/... go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/...
else
$(error "CODECOV_TOKEN token is required")
endif
e2e: e2e:
go run ${DIR_E2E}/main.go --tests ${DIR_E2E}/tests --pages ${DIR_E2E}/pages go run ${DIR_E2E}/main.go --tests ${DIR_E2E}/tests --pages ${DIR_E2E}/pages
@ -55,9 +59,9 @@ vet:
release: release:
ifeq ($(RELEASE_VERSION), ) ifeq ($(RELEASE_VERSION), )
echo "Release version is required (version=x)" $(error "Release version is required (version=x)")
else ifeq ($(GITHUB_TOKEN), ) else ifeq ($(GITHUB_TOKEN), )
echo "GitHub token is required (GITHUB_TOKEN)" $(error "GitHub token is required (GITHUB_TOKEN)")
else else
rm -rf ./dist && \ rm -rf ./dist && \
git tag -a v$(RELEASE_VERSION) -m "New $(RELEASE_VERSION) version" && \ git tag -a v$(RELEASE_VERSION) -m "New $(RELEASE_VERSION) version" && \