forked from qri-io/starlib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
41 lines (31 loc) · 1.12 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
GOFILES = $(shell find . -name '*.go' -not -path './vendor/*')
default: test
lint:
golint ./...
meta-lint: require-golangci-lint
golangci-lint --enable misspell run
test:
go test ./... -v --coverprofile=coverage.txt --covermode=atomic
test-all-coverage:
./.circleci/cover.test.sh
update-changelog:
conventional-changelog -p angular -i CHANGELOG.md -s
docs:
@if [ ! -d ../website/content/docs ]; then \
echo "website repo not found, should be a sibling to starlib/"; \
exit 1; \
fi
@mkdir -p ../website/content/docs/reference/starlark-packages
for sourcefile in $$(find . | grep doc.go) ; do \
targetfile="`echo $${sourcefile} | sed 's/\/doc.go/.md/'`"; \
outline template --template asset/doc_template.txt $${sourcefile} > ../website/content/docs/reference/starlark-packages/$${targetfile} ; \
done
list-deps:
go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
run-circleci-tests-locally:
circleci local execute .
require-golangci-lint:
ifeq (,$(shell which golangci-lint))
@echo "installing golangci-lint"
$(shell brew install golangci-lint)
endif