fix(ci): add codecov
This commit is contained in:
parent
17dda6a987
commit
c679b29051
14
.travis.yml
14
.travis.yml
@ -7,12 +7,14 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- stage: build
|
- stage: build
|
||||||
script: make container-run/all
|
script: make container-run/all
|
||||||
|
# Disabled (Missing postgres db)
|
||||||
deploy:
|
# - stage: test
|
||||||
- provider: script
|
# script: make container-run/test/unit
|
||||||
script: make container-run/release/all
|
- stage: test
|
||||||
on:
|
script: make container-run/test/unit
|
||||||
tags: true
|
after_script: bash <(curl -s https://codecov.io/bash)
|
||||||
|
- stage: deploy
|
||||||
|
script: make container-image/push
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
9
Makefile
9
Makefile
@ -189,10 +189,7 @@ test/goldenfiles/bindata.go:
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
PHONY+=test/unit
|
PHONY+=test/unit
|
||||||
test/unit: clean bindata
|
test/unit: clean bindata
|
||||||
go test -coverprofile coverage.html -v ./...
|
go test -v -race -coverprofile=coverage.txt -covermode=atomic $(shell go list ./... | grep -v db)
|
||||||
|
|
||||||
test/cover-html: test/unit
|
|
||||||
go tool cover -html coverage.html
|
|
||||||
|
|
||||||
# PACKAGES
|
# PACKAGES
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
@ -259,8 +256,8 @@ container-run/bindata:
|
|||||||
|
|
||||||
# CONTAINER STEPS - TEST
|
# CONTAINER STEPS - TEST
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
PHONY+=container-run/test
|
PHONY+=container-run/test/unit
|
||||||
container-run/test:
|
container-run/test/unit:
|
||||||
$(MAKE) container-run COMMAND=${@:container-run/%=%}
|
$(MAKE) container-run COMMAND=${@:container-run/%=%}
|
||||||
|
|
||||||
# CONTAINER STEPS - OTHER STUF
|
# CONTAINER STEPS - OTHER STUF
|
||||||
|
Loading…
Reference in New Issue
Block a user