1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-12 11:15:14 +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
script:
- make cover
after_success:
- if [ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]; then bash <(curl -s https://codecov.io/bash); fi
- stage: e2e
before_script:

View File

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