Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (36 loc) · 1.48 KB
/
Copy pathMakefile
File metadata and controls
53 lines (36 loc) · 1.48 KB
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
.PHONY: api-test app-test build db-test dev-services down linux managed-test release release-smoke release-target serve test ui-build up verify
SHEETBASE_DEV_HOME ?= .sheetbase
SHEETBASE_DEV_POSTGRES_PORT ?= 55532
SHEETBASE_DEV_POSTGREST_PORT ?= 3010
build: ui-build
go build -o bin/sheetbase .
linux: ui-build
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/sheetbase-linux-amd64 .
test: ui-build
cd ui && npm test
go test ./...
verify: test db-test api-test app-test managed-test release-smoke
db-test:
./scripts/test-postgres.sh
api-test:
./scripts/test-postgrest.sh
app-test:
./scripts/test-app-auth.sh
managed-test:
./scripts/test-managed-docker.sh
release:
./scripts/release-linux.sh
release-target:
./scripts/build-release.sh "$(GOOS)" "$(GOARCH)"
release-smoke:
./scripts/test-release-smoke.sh
dev-services:
go run . start --home "$(SHEETBASE_DEV_HOME)" --postgres-port "$(SHEETBASE_DEV_POSTGRES_PORT)" --postgrest-port "$(SHEETBASE_DEV_POSTGREST_PORT)"
serve: ui-build dev-services
go run . serve --home "$(SHEETBASE_DEV_HOME)" --postgres-port "$(SHEETBASE_DEV_POSTGRES_PORT)" --postgrest-port "$(SHEETBASE_DEV_POSTGREST_PORT)"
up: ui-build
go run . up --home "$(SHEETBASE_DEV_HOME)" --postgres-port "$(SHEETBASE_DEV_POSTGRES_PORT)" --postgrest-port "$(SHEETBASE_DEV_POSTGREST_PORT)"
down:
go run . down --home "$(SHEETBASE_DEV_HOME)" --postgres-port "$(SHEETBASE_DEV_POSTGRES_PORT)" --postgrest-port "$(SHEETBASE_DEV_POSTGREST_PORT)"
ui-build:
cd ui && npm run build