drone: Run tests including integration tests

This commit is contained in:
Matthias Loibl 2019-04-24 18:37:44 +02:00
parent 42b0bb7ab2
commit 807ab8dc76
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA
3 changed files with 7 additions and 3 deletions

View file

@ -38,7 +38,7 @@
name: 'build', name: 'build',
commands: [ commands: [
'make build', 'make build',
'make test', 'make test-integration',
], ],
}, },

View file

@ -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

View file

@ -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