1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-03-03 15:02:32 +02:00

Updated config for code coverage report

This commit is contained in:
Tim Voronov 2018-10-25 21:48:45 -04:00
parent 10c7273f07
commit fbeedbd03e
2 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,6 @@ jobs:
- stage: test
script:
- make cover
- if [ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]; then bash <(curl -s https://codecov.io/bash); fi
- stage: e2e
before_script:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 --disable-setuid-sandbox --no-sandbox about:blank &

View File

@ -25,11 +25,14 @@ test:
go test -v -race ${DIR_PKG}/...
cover:
ifneq ($(CODECOV_TOKEN), )
go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/...
ifeq ($(TRAVIS_BRANCH)$(TRAVIS_PULL_REQUEST), masterfalse)
ifneq ($(CODECOV_TOKEN), )
bash <(curl -s https://codecov.io/bash)
else
$(error "CODECOV_TOKEN token is required")
endif
endif
e2e:
go run ${DIR_E2E}/main.go --tests ${DIR_E2E}/tests --pages ${DIR_E2E}/pages