-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathjustfile
More file actions
80 lines (65 loc) · 1.7 KB
/
justfile
File metadata and controls
80 lines (65 loc) · 1.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
alias b := build
alias ds := docs-serve
alias dsup := docs-supported
alias vc := version-check
# List available tasks.
default:
@just --list
# Build noir binary.
[group('build')]
build:
shards build
# Update shards.nix.
[group('build')]
nix-update:
nix-shell -p crystal2nix --run crystal2nix
# Serve docs site locally.
[group('documents')]
docs-serve:
hwaro serve -i docs --base-url="http://localhost:3000"
# Generate supported technology docs from techs.cr.
[group('documents')]
docs-supported:
crystal run scripts/generate_supported_docs.cr
# Generate supported docs and serve the site.
[group('documents')]
docs-serve-supported: docs-supported docs-serve
# Check for missing i18n documentation files.
[group('documents')]
docs-i18n-check:
crystal run scripts/check_i18n_docs.cr
# Install docs dependencies (macOS).
[group('documents')]
docs-dependencies:
brew install hahwul/hwaro/hwaro
# Auto-format code and fix lint issues.
[group('development')]
fix:
crystal tool format
bin/ameba.cr --fix
# Check code format and lint without changes.
[group('development')]
check:
crystal tool format --check
bin/ameba.cr
# Run all tests.
[group('development')]
test:
crystal spec spec/unit_test
crystal spec spec/functional_test
# Run unit tests only.
[group('development')]
test-unit:
crystal spec spec/unit_test
# Run functional tests only.
[group('development')]
test-func:
crystal spec spec/functional_test
# Run uncovered tests only (not included in CI).
[group('development')]
test-uncovered:
crystal spec spec/uncovered_test
# Check version consistency across all files.
[group('development')]
version-check:
crystal run scripts/check_version_consistency.cr