aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 1fead78cf1445f9059aed567ac8199053e8df923 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
GOLINT = go run github.com/golang/lint/golint
STATICCHECK = go run honnef.co/go/tools/cmd/staticcheck

.PHONY: all
all: test

.PHONY: build
build:
	go build

.PHONY: generate
generate: bindata.go

.PHONY: install
install:
	go install .

.PHONY: lint
lint:
	$(GOLINT) ./...

.PHONY: vet
vet:
	go vet ./...

.PHONY: staticcheck
staticcheck:
	$(STATICCHECK) -tests=false ./...

.PHONY: pretest
pretest: lint vet staticcheck

.PHONY: test
test: pretest
	go test -race ./...

.PHONY: cover
cover:
	go test -coverprofile=cover.out -covermode=atomic -coverpkg=./... ./...
	go tool cover -html=cover.out -o cover.html

.PHONY: clean
clean:
	rm -rf _tmp

.PHONY: docker-build-dev
docker-build-dev:
	docker build -t uber/sally-dev .

.PHONY: docker-test
docker-test: docker-build-dev
	docker run uber/sally-dev make test

.PHONY: docker-build-internal
docker-build-internal:
	rm -rf _tmp
	mkdir -p _tmp
	CGO_ENABLED=0 go build -a -o _tmp/sally .
	docker build -t uber/sally -f Dockerfile.scratch .

.PHONY: docker-build
docker-build: docker-build-dev
	docker run -v /var/run/docker.sock:/var/run/docker.sock uber/sally-dev make docker-build-internal

.PHONY: docker-launch-dev
docker-launch-dev: docker-build-dev
	docker run -p 8080:8080 uber/sally-dev

.PHONY: docker-launch
docker-launch: docker-build
	docker run -p 8080:8080 uber/sally

.PHONY: install
run: install
	sally
do-evaluation-order'>jarred/redo-evaluation-order Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/.vscode (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2022-07-17fix scoped packages name resolution (#760)Gravatar Alexander Kuznetsov 1-2/+8
2022-07-16test(wiptest): add a way to test wiptest (#699)Gravatar thislooksfun 8-2/+451
2022-07-16docs: fix documentation of `atob` and `btoa` (#748)Gravatar thislooksfun 1-6/+6
2022-07-16fix/clean-up-bun-error (#753)Gravatar John Daly 4-101/+54
2022-07-15[parser] Fix symbol collision with requireGravatar Jarred Sumner 7-40/+63
2022-07-15Add a TLA testGravatar Jarred Sumner 2-0/+11
2022-07-15[bun.js] Fix non-ascii latin1 string handling in console.logGravatar Jarred Sumner 7-73/+175
2022-07-15minor edit: Makefile (#672)Gravatar Travis Pulley 1-1/+7
2022-07-15fix(README): Remove unused troubleshooting link (#736)Gravatar Finn R. Gärtner 1-1/+0