mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2026-02-02 17:35:09 +01:00
drone: Run tests including integration tests
This commit is contained in:
parent
42b0bb7ab2
commit
807ab8dc76
3 changed files with 7 additions and 3 deletions
|
|
@ -38,7 +38,7 @@
|
||||||
name: 'build',
|
name: 'build',
|
||||||
commands: [
|
commands: [
|
||||||
'make build',
|
'make build',
|
||||||
'make test',
|
'make test-integration',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ steps:
|
||||||
image: golang:1.12
|
image: golang:1.12
|
||||||
commands:
|
commands:
|
||||||
- make build
|
- make build
|
||||||
- make test
|
- make test-integration
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
GO111MODULE: on
|
GO111MODULE: on
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -27,9 +27,13 @@ install: build
|
||||||
@cp $(OUTPUT) $(GOPATH)/bin/$(BIN)
|
@cp $(OUTPUT) $(GOPATH)/bin/$(BIN)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@echo ">> running all tests"
|
@echo ">> running all unit tests"
|
||||||
@go test $(PKGS)
|
@go test $(PKGS)
|
||||||
|
|
||||||
|
test-integration:
|
||||||
|
@echo ">> running all integration tests"
|
||||||
|
go test -v -tags=integration $(PKGS)
|
||||||
|
|
||||||
generate: embedmd
|
generate: embedmd
|
||||||
@echo ">> generating docs"
|
@echo ">> generating docs"
|
||||||
@./scripts/generate-help-txt.sh
|
@./scripts/generate-help-txt.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue