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
|
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
|
name: tests-integration
|
||||||
steps:
|
steps:
|
||||||
- name: wait
|
- name: wait
|
||||||
|
@ -36,7 +51,7 @@ kind: pipeline
|
||||||
name: tests-unit
|
name: tests-unit
|
||||||
steps:
|
steps:
|
||||||
- name: go
|
- name: go
|
||||||
image: golang:1.12
|
image: golang:1.13
|
||||||
commands:
|
commands:
|
||||||
- make test_unit
|
- make test_unit
|
||||||
trigger:
|
trigger:
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -3,6 +3,7 @@ GORUN=$(GOCMD) run
|
||||||
GOBUILD=$(GOCMD) build
|
GOBUILD=$(GOCMD) build
|
||||||
GOCLEAN=$(GOCMD) clean
|
GOCLEAN=$(GOCMD) clean
|
||||||
GOTEST=$(GOCMD) test
|
GOTEST=$(GOCMD) test
|
||||||
|
GOFMT_PROG=gofmt
|
||||||
DOCKERCOMPOSE=docker-compose
|
DOCKERCOMPOSE=docker-compose
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,6 +19,9 @@ build:
|
||||||
|
|
||||||
test: test_unit test_integration
|
test: test_unit test_integration
|
||||||
|
|
||||||
|
test_fmt:
|
||||||
|
$(GOFMT_PROG) -l .
|
||||||
|
|
||||||
test_unit:
|
test_unit:
|
||||||
$(GOTEST) -tags=unit -v -cover
|
$(GOTEST) -tags=unit -v -cover
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue