Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
initial clean-up of deployment API
Browse files Browse the repository at this point in the history
  • Loading branch information
corinnekrych committed Jan 18, 2019
1 parent 8c71948 commit c633a4e
Show file tree
Hide file tree
Showing 98 changed files with 54 additions and 63,559 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ coverage:
# See http://docs.codecov.io/docs/pull-request-comments-1
comment:
layout: "header, diff, tree"
behavior: # defualt = posts once then update, posts new if delete
behavior: # default = posts once then update, posts new if delete
# once = post once then updates
# new = delete old, post new
# spammy = post new
126 changes: 44 additions & 82 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 1 addition & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -287,27 +287,14 @@ app/controllers.go: $(DESIGNS) $(GOAGEN_BIN) $(VENDOR_DIR) goasupport/jsonapi_er
$(GOAGEN_BIN) client -d github.com/fabric8-services/fabric8-notification/design --notool --pkg client -o notification
$(GOAGEN_BIN) client -d github.com/fabric8-services/fabric8-auth/design --notool --pkg authservice -o auth

$(MINIMOCK_BIN):
@echo "building the minimock binary..."
@cd $(VENDOR_DIR)/github.com/gojuno/minimock/cmd/minimock && go build -v minimock.go

.PHONY: generate-minimock
generate-minimock: deps $(MINIMOCK_BIN) ## Generate Minimock sources. Only necessary after clean or if changes occurred in interfaces.
@echo "Generating mocks..."
-mkdir -p test/controller
$(MINIMOCK_BIN) -i github.com/fabric8-services/fabric8-wit/controller.ClientGetter -o ./test/controller/client_getter_mock.go -t ClientGetterMock
$(MINIMOCK_BIN) -i github.com/fabric8-services/fabric8-wit/controller.OpenshiftIOClient -o ./test/controller/osio_client_mock.go -t OSIOClientMock
-mkdir -p test/kubernetes
$(MINIMOCK_BIN) -i github.com/fabric8-services/fabric8-wit/kubernetes.KubeClientInterface -o ./test/kubernetes/kube_client_mock.go -t KubeClientMock

.PHONY: migrate-database
## Compiles the server and runs the database migration with it
migrate-database: $(BINARY_SERVER_BIN)
$(BINARY_SERVER_BIN) -migrateDatabase

.PHONY: generate
## Generate GOA sources. Only necessary after clean of if changed `design` folder.
generate: app/controllers.go migration/sqlbindata.go spacetemplate/template_assets.go generate-minimock swagger/swagger_assets.go
generate: app/controllers.go migration/sqlbindata.go spacetemplate/template_assets.go swagger/swagger_assets.go

.PHONY: regenerate
## Runs the "clean-generated" and the "generate" target
Expand Down
Loading

0 comments on commit c633a4e

Please sign in to comment.