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:
parent
10c7273f07
commit
fbeedbd03e
@ -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 &
|
||||
|
5
Makefile
5
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user