-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
70 lines (53 loc) · 1.52 KB
/
justfile
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
_default:
just --list
# === Utils ===
# Run code generator script.
codegen:
cd codegen && poetry install
cd codegen && poetry run python ./codegen
# === Testing ===
# Run unit tests.
unit_tests:
#!/bin/env bash
cd tests/unit_test
rm -rf build
mkdir -p build
cmake -B build -DCMAKE_GENERATOR="Unix Makefiles"
make -C build -j 4
python run_tests.py -t 0.5 -j 4 build/bin/
# Run bare-metal integration tests.
baremetal_integration_tests:
cd ./tests/baremetal_integration/ && ./test.bash
# === FreeRTOS checkout ===
# Setup project FreeRTOS checkout.
freertos_clone:
rm -rf FreeRTOS-Kernel
git clone https://github.com/FreeRTOS/FreeRTOS-Kernel.git FreeRTOS-Kernel
# Put project FreeRTOS checkout at latest commit.
freertos_checkout_main:
cd FreeRTOS-Kernel && git checkout main
# Put project FreeRTOS checkout at v10.3.1.
freertos_checkout_v10_3_1:
cd FreeRTOS-Kernel && git checkout V10.3.1-kernel-only
# Put project FreeRTOS checkout at v11.1.0.
freertos_checkout_v11_1_0:
cd FreeRTOS-Kernel && git checkout V11.1.0
# === Website ===
# Serve documentation from dev server.
serve_docs:
cd docs && mdbook serve
# Build documentation
build_docs:
cd docs && mdbook build
# Build WASM bindings.
build_wasm:
cd web/tband-wasm && wasm-pack build
# Setup website environment.
setup_website:
cd web/website && npm install
# Serve website from dev server.
serve_website:
cd web/website && npm run dev
# Build website.
build_website:
cd web/website && npm run build