kubo/Makefile
Christian Couder bac042536b Fix test_docker Makefile target and rename it test_3node
The dockertest/ directory has been moved into test/ and
it has been renamed 3nodetest/ in commit 28cf220d
(dockertest -> test/3nodetest).

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-07 21:54:47 +01:00

48 lines
997 B
Makefile

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 ./...
install:
cd cmd/ipfs && go install
build:
cd cmd/ipfs && go build
##############################################################
# tests targets
test: test_expensive
test_short: build test_go_short test_sharness_short
test_expensive: build test_go_expensive test_sharness_expensive
test_3node:
cd test/3nodetest && make
test_go_short:
go test -test.short ./...
test_go_expensive:
go test ./...
test_sharness_short:
cd test/sharness/ && make
test_sharness_expensive:
cd test/sharness/ && TEST_EXPENSIVE=1 make
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