Makefile 762 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
all:
	# no-op

godep:
	go get github.com/tools/godep

# saves/vendors third-party dependencies to Godeps/_workspace
# -r flag rewrites import paths to use the vendored path
# ./... performs operation on all packages in tree
vendor: godep
	godep save -r ./...
12

13
install:
14
	cd cmd/ipfs && go install
15

16 17
test: test_go test_sharness

18 19
test_expensive: test_go_expensive test_sharness_expensive

20
test_go:
21 22 23
	go test -test.short ./...

test_go_expensive:
24 25
	go test ./...

26
test_sharness:
27
	cd test/ && make
28 29 30

test_sharness_expensive:
	cd test/ && make TEST_EXPENSIVE=1
31 32 33 34 35 36

test_all_commits:
	@echo "testing all commits between origin/master..HEAD"
	@echo "WARNING: this will 'git rebase --exec'."
	@test/bin/continueyn
	GIT_EDITOR=true git rebase -i --exec "make test" origin/master