-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
59 lines (44 loc) · 1.13 KB
/
Copy pathjustfile
File metadata and controls
59 lines (44 loc) · 1.13 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
set shell := ["bash", "-cu"]
default:
@just --list
# Configure default Debug build
configure:
cmake -B build
# Configure explicit Debug build
configure-debug:
cmake -B build -DCMAKE_BUILD_TYPE=Debug
# Configure Release build
configure-release:
cmake -B build -DCMAKE_BUILD_TYPE=Release
# Configure build with tests disabled
configure-no-tests:
cmake -B build -DBUILD_TESTS=OFF
# Configure build with logging disabled
configure-no-logging:
cmake -B build -DENABLE_LOGGING=OFF
# Build project
build:
cmake --build build
# Build and run all tests
test:
ctest --test-dir build --output-on-failure
# Build + test in one command
check:
cmake --build build && ctest --test-dir build --output-on-failure
# Verbose ctest output
test-verbose:
ctest --test-dir build --output-on-failure --verbose
# Run focused test binaries
test-query:
./build/test/query_test
test-parser:
./build/test/parser_test
# Run SQL engine REPL
run:
./build/src/sqlengine
# Remove build artifacts
clean:
rm -rf build
# No-cache build (fresh configure + build)
fresh:
rm -rf build && cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug && cmake --build build