1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-09-16 09:06:36 +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 - stage: test
script: script:
- make cover - make cover
- 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:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 --disable-setuid-sandbox --no-sandbox about:blank & - 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}/... 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}/...
ifeq ($(TRAVIS_BRANCH)$(TRAVIS_PULL_REQUEST), masterfalse)
ifneq ($(CODECOV_TOKEN), )
bash <(curl -s https://codecov.io/bash)
else else
$(error "CODECOV_TOKEN token is required") $(error "CODECOV_TOKEN token is required")
endif endif
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