Skip to content

Commit

Permalink
ref(*): Manage test dependencies using godeps
Browse files Browse the repository at this point in the history
Simplify test running and dependency management.

Follow deis coding standards
> Use of third-party go packages should be minimal, but when doing so,
vendor code into the Deis package with the godep tool.
  • Loading branch information
johanneswuerbach committed Nov 26, 2014
1 parent 26da3f4 commit 95a3e48
Show file tree
Hide file tree
Showing 407 changed files with 31,399 additions and 646 deletions.
2 changes: 1 addition & 1 deletion builder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ test-unit:

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
2 changes: 1 addition & 1 deletion cache/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ test-unit:

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
2 changes: 1 addition & 1 deletion controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ test-unit: setup-venv test-style
test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
@docker history deis/test-postgresql >/dev/null 2>&1 || docker pull deis/test-postgresql:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
2 changes: 1 addition & 1 deletion database/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ test-unit:

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
2 changes: 1 addition & 1 deletion logger/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ test-unit: test-style

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...

coverage:
go test -coverprofile coverage.out ./syslog
Expand Down
2 changes: 1 addition & 1 deletion registry/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ test-unit:

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
2 changes: 1 addition & 1 deletion router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ test-unit:

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
2 changes: 1 addition & 1 deletion store/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ test-unit:

test-functional:
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
214 changes: 214 additions & 0 deletions tests/Godeps/Godeps.json

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

5 changes: 5 additions & 0 deletions tests/Godeps/Readme

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

2 changes: 2 additions & 0 deletions tests/Godeps/_workspace/.gitignore

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

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

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

Loading

0 comments on commit 95a3e48

Please sign in to comment.