4
1
Fork 0

Fix formatting
continuous-integration/drone/push Build is failing Details

pull/24/head
Ambrose Chua 2019-10-23 13:49:43 +08:00
parent 3ff4759790
commit b273ee9390
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
11 changed files with 314 additions and 295 deletions

View File

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

View File

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

View File

@ -7,8 +7,8 @@ import (
"os" "os"
"github.com/joho/godotenv" "github.com/joho/godotenv"
"github.com/nats-io/go-nats"
_ "github.com/lib/pq" _ "github.com/lib/pq"
"github.com/nats-io/go-nats"
) )
var listen string var listen string