-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 984 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (32 loc) · 984 Bytes
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
APP := meridian
ENTRYPOINT := src/meridian_cli.cr
.PHONY: build test lint release e2e-marten e2e-marten-incremental e2e-marten-postgres e2e-rails-postgres e2e-go e2e-all
build:
crystal build $(ENTRYPOINT) -o bin/$(APP)
test:
crystal spec
e2e-marten:
./scripts/test-recipe marten-sqlite-assets
e2e-marten-incremental:
./scripts/test-recipe marten-sqlite-incremental
e2e-marten-postgres:
./scripts/test-recipe marten-postgres-dragonfly-assets
e2e-rails-postgres:
./scripts/test-recipe rails-postgres
e2e-go:
./scripts/test-recipe go-static-binary
e2e-all: e2e-marten e2e-marten-incremental e2e-marten-postgres e2e-rails-postgres e2e-go
.PHONY: format
## Perform and apply crystal formatting.
format:
crystal tool format -e tmp
.PHONY: format_checks
## Trigger crystal formatting checks.
format_checks:
crystal tool format --check -e tmp
.PHONY: lint
## Trigger code quality checks.
lint:
bin/ameba.cr
release:
crystal build $(ENTRYPOINT) --release -o bin/$(APP)