Migrate Makefile tasks, dockerfiles to go modules
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## builder image
|
||||
FROM cortezaproject/corteza-server-builder:latest AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/cortezaproject/corteza-server
|
||||
WORKDIR /cortrza/src
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## builder image
|
||||
FROM cortezaproject/corteza-server-builder:latest AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/cortezaproject/corteza-server
|
||||
WORKDIR /corteza/src
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## builder image
|
||||
FROM cortezaproject/corteza-server-builder:latest AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/cortezaproject/corteza-server
|
||||
WORKDIR /corteza/src
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## builder image
|
||||
FROM cortezaproject/corteza-server-builder:latest AS builder
|
||||
|
||||
WORKDIR /go/src/github.com/cortezaproject/corteza-server
|
||||
WORKDIR /corteza/src
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
21
Makefile
21
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: help docker docker-push realize dep dep.update qa critic vet codegen integration
|
||||
.PHONY: help docker docker-push realize qa critic vet codegen integration
|
||||
|
||||
GO = go
|
||||
GOGET = $(GO) get -u
|
||||
@@ -38,7 +38,6 @@ TEST_SUITE_all = $(TEST_SUITE_unit) $(TEST_SUITE_integration)
|
||||
|
||||
########################################################################################################################
|
||||
# Tool bins
|
||||
DEP = $(GOPATH)/bin/dep
|
||||
REALIZE = ${GOPATH}/bin/realize
|
||||
GOCRITIC = ${GOPATH}/bin/gocritic
|
||||
MOCKGEN = ${GOPATH}/bin/mockgen
|
||||
@@ -84,12 +83,6 @@ docker-push.%: Dockerfile.%
|
||||
realize: $(REALIZE)
|
||||
$(REALIZE) start
|
||||
|
||||
dep.update: $(DEP)
|
||||
$(DEP) ensure -update -v
|
||||
|
||||
dep: $(DEP)
|
||||
$(DEP) ensure -v
|
||||
|
||||
codegen: $(PROTOGEN)
|
||||
./codegen.sh
|
||||
|
||||
@@ -125,6 +118,10 @@ test.integration.%:
|
||||
test.all:
|
||||
$(GOTEST) $(TEST_FLAGS) $(TEST_SUITE_all)
|
||||
|
||||
# Unit testing testing messaging, system or compose
|
||||
test.unit.%:
|
||||
$(GOTEST) $(TEST_FLAGS) ./$*/...
|
||||
|
||||
# Runs ALL tests
|
||||
test.unit:
|
||||
$(GOTEST) $(TEST_FLAGS) $(TEST_SUITE_unit)
|
||||
@@ -133,11 +130,6 @@ test.unit:
|
||||
test.pkg:
|
||||
$(GOTEST) $(TEST_FLAGS) $(TEST_SUITE_pkg)
|
||||
|
||||
|
||||
# Testing messaging, system, compose
|
||||
test.%:
|
||||
$(GOTEST) $(TEST_FLAGS) ./$*/...
|
||||
|
||||
test: test.unit
|
||||
|
||||
# Outputs cross-package imports that should not be there.
|
||||
@@ -183,9 +175,6 @@ $(REALIZE):
|
||||
$(GOCRITIC):
|
||||
$(GOGET) github.com/go-critic/go-critic/...
|
||||
|
||||
$(DEP):
|
||||
$(GOGET) github.com/tools/godep
|
||||
|
||||
$(MOCKGEN):
|
||||
$(GOGET) github.com/golang/mock/gomock
|
||||
$(GOGET) github.com/golang/mock/mockgen
|
||||
|
||||
Reference in New Issue
Block a user