github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/Makefile (about)

     1  COVERWEB=go tool cover -html=/tmp/count.out
     2  
     3  fmt:
     4  	go fmt ./...
     5  
     6  vet:
     7  	go vet ./...
     8  
     9  # to run splint, first do this:  go get stathat.com/c/splint
    10  splint:
    11  	splint -s 100 `find . -name "*.go"`
    12  
    13  cover:
    14  	go test -covermode=count ./...
    15  
    16  test:
    17  	test/check_or_start_kbweb.sh
    18  	go test ./...
    19  	test/pause_kbweb.sh
    20  
    21  testclean:
    22  	test/nuke_kbweb.sh
    23  
    24  coverclient:
    25  	$(COVERTEST) ./client
    26  	$(COVERWEB)
    27  
    28  coverdaemon:
    29  	$(COVERTEST) ./daemon
    30  	$(COVERWEB)
    31  
    32  coverengine:
    33  	$(COVERTEST) ./engine
    34  	$(COVERWEB)
    35  
    36  coverlibcmdline:
    37  	$(COVERTEST) ./libcmdline
    38  	$(COVERWEB)
    39  
    40  coverlibkb:
    41  	$(COVERTEST) ./libkb
    42  	$(COVERWEB)
    43  
    44  coverclean:
    45  	rm /tmp/count.out
    46  
    47  gen-deps:
    48  	./gen_deps.pl
    49  
    50  linux-clear-devel-secrets:
    51  	secret-tool clear service-base keybase-devel
    52  
    53  linux-clear-test-secrets:
    54  	secret-tool clear service-base keybase-devel-test
    55  
    56  GOLANGCI_RUN_OPT = --color auto
    57  
    58  golangci-lint-kbfs:
    59  	go list -f '{{.Dir}}' ./kbfs/... | fgrep -v dokan | xargs realpath --relative-to=. | xargs golangci-lint run $(GOLANGCI_RUN_OPT) --deadline 5m0s
    60  
    61  golangci-lint-nonkbfs:
    62  	go list -f '{{.Dir}}' ./... | fgrep -v protocol  | fgrep -v kbfs | xargs realpath --relative-to=. | xargs golangci-lint run $(GOLANGCI_RUN_OPT) --deadline 10m0s
    63  
    64  .PHONY: test splint fmt lint vet cover testclean coverclient coverdaemon coverengine coverlibcmdline coverlibkb coverclean gen-deps