github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/Makefile (about)

     1  
     2  ifeq ($(TEST_NO_FUSE),1)
     3  go_test=go test -tags nofuse
     4  else
     5  go_test=go test
     6  endif
     7  
     8  
     9  all:
    10  	# no-op. try:
    11  	#   make install
    12  	#   make test
    13  
    14  godep:
    15  	go get github.com/tools/godep
    16  
    17  # saves/vendors third-party dependencies to Godeps/_workspace
    18  # -r flag rewrites import paths to use the vendored path
    19  # ./... performs operation on all packages in tree
    20  vendor: godep
    21  	godep save -r ./...
    22  
    23  install:
    24  	cd cmd/ipfs && go install
    25  
    26  build:
    27  	cd cmd/ipfs && go build -i
    28  
    29  nofuse:
    30  	cd cmd/ipfs && go install -tags nofuse
    31  
    32  ##############################################################
    33  # tests targets
    34  
    35  test: test_expensive
    36  
    37  test_short: build test_go_short test_sharness_short
    38  
    39  test_expensive: build test_go_expensive test_sharness_expensive
    40  
    41  test_3node:
    42  	cd test/3nodetest && make
    43  
    44  test_go_short:
    45  	$(go_test) -test.short ./...
    46  
    47  test_go_expensive:
    48  	$(go_test) ./...
    49  
    50  test_go_race:
    51  	$(go_test) ./... -race
    52  
    53  test_sharness_short:
    54  	cd test/sharness/ && make
    55  
    56  test_sharness_expensive:
    57  	cd test/sharness/ && TEST_EXPENSIVE=1 make
    58  
    59  test_all_commits:
    60  	@echo "testing all commits between origin/master..HEAD"
    61  	@echo "WARNING: this will 'git rebase --exec'."
    62  	@test/bin/continueyn
    63  	GIT_EDITOR=true git rebase -i --exec "make test" origin/master
    64  
    65  test_all_commits_travis:
    66  	# these are needed because travis.
    67  	# we don't use this yet because it takes way too long.
    68  	git config --global user.email "nemo@ipfs.io"
    69  	git config --global user.name "IPFS BOT"
    70  	git fetch origin master:master
    71  	GIT_EDITOR=true git rebase -i --exec "make test" master