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',
commands: [
'make build',
'make test',
'make test-integration',
],
},

View file

@ -26,7 +26,7 @@ steps:
image: golang:1.12
commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: 0
GO111MODULE: on

View file

@ -27,9 +27,13 @@ install: build
@cp $(OUTPUT) $(GOPATH)/bin/$(BIN)
test:
@echo ">> running all tests"
@echo ">> running all unit tests"
@go test $(PKGS)
test-integration:
@echo ">> running all integration tests"
go test -v -tags=integration $(PKGS)
generate: embedmd
@echo ">> generating docs"
@./scripts/generate-help-txt.sh