Fix formatting
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
3ff4759790
commit
b273ee9390
17
.drone.yml
17
.drone.yml
|
@ -1,4 +1,19 @@
|
|||
kind: pipeline
|
||||
name: tests-fmt
|
||||
steps:
|
||||
- name: go
|
||||
image: golang:1.13
|
||||
commands:
|
||||
- make test_fmt
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- develop
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
---
|
||||
kind: pipeline
|
||||
name: tests-integration
|
||||
steps:
|
||||
- name: wait
|
||||
|
@ -36,7 +51,7 @@ kind: pipeline
|
|||
name: tests-unit
|
||||
steps:
|
||||
- name: go
|
||||
image: golang:1.12
|
||||
image: golang:1.13
|
||||
commands:
|
||||
- make test_unit
|
||||
trigger:
|
||||
|
|
4
Makefile
4
Makefile
|
@ -3,6 +3,7 @@ GORUN=$(GOCMD) run
|
|||
GOBUILD=$(GOCMD) build
|
||||
GOCLEAN=$(GOCMD) clean
|
||||
GOTEST=$(GOCMD) test
|
||||
GOFMT_PROG=gofmt
|
||||
DOCKERCOMPOSE=docker-compose
|
||||
|
||||
|
||||
|
@ -18,6 +19,9 @@ build:
|
|||
|
||||
test: test_unit test_integration
|
||||
|
||||
test_fmt:
|
||||
$(GOFMT_PROG) -l .
|
||||
|
||||
test_unit:
|
||||
$(GOTEST) -tags=unit -v -cover
|
||||
|
||||
|
|
Loading…
Reference in New Issue