Makefile 1.01 KB
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 18
build:
	cd cmd/ipfs && go build

19 20 21 22 23
##############################################################
# tests targets

test: test_expensive

24
test_short: build test_go_short test_sharness_short
25

26
test_expensive: build test_go_expensive test_sharness_expensive
27

28 29
test_3node:
	cd test/3nodetest && make
Brian Tiger Chow's avatar
Brian Tiger Chow committed
30

31
test_go_short:
32 33 34
	go test -test.short ./...

test_go_expensive:
35 36
	go test ./...

Brian Tiger Chow's avatar
Brian Tiger Chow committed
37 38 39
test_go_race:
	go test ./... -race

40
test_sharness_short:
41
	cd test/sharness/ && make
42 43

test_sharness_expensive:
44
	cd test/sharness/ && TEST_EXPENSIVE=1 make
45 46 47 48 49 50

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