-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathjustfile
More file actions
executable file
·68 lines (52 loc) · 1.43 KB
/
Copy pathjustfile
File metadata and controls
executable file
·68 lines (52 loc) · 1.43 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
#!/usr/bin/env -S just --justfile
# Compiler to use. Options: "g++", "clang", ...
CXX := env_var_or_default("CXX", "g++")
# Number of cores for parallel compilation.
JOBS := env_var_or_default("JOBS", "6")
alias t := test
[default]
test *ARGS:
just build "debug"
just test-run "debug" {{ARGS}}
just build "release"
just test-run "release" {{ARGS}}
test-run BUILD_MODE="debug" *ARGS:
./build/{{BUILD_MODE}}/{{CXX}}/tests/tests {{ARGS}}
alias b := build
build BUILD_MODE="debug":
make {{BUILD_MODE}} BUILD_DIR="build/{{BUILD_MODE}}/{{CXX}}"
alias w := wip
wip BUILD_DIR BUILD_MODE="debug" *ARGS:
make {{BUILD_MODE}} BUILD_DIR="build/{{BUILD_DIR}}/{{CXX}}"
./build/{{BUILD_DIR}}/{{CXX}}/tests/tests {{ARGS}}
alias tp := test-python
[working-directory: "bindings/python/"]
test-python:
# source .venv/bin/activate.fish &&
make -j {{JOBS}} BUILD_DIR=build/bindings/python
make -j {{JOBS}} test
../../run_papermill_examples.sh
# ; deactivate
alias vc := valgrind-callgrind
valgrind-callgrind +ARGS:
valgrind --tool=callgrind {{ARGS}}
alias c := clean
clean:
make clean
alias r := release
release: (build "release")
alias rd := release-debuginfo
release-debuginfo: (build "release-debuginfo")
alias d := docs
docs:
make docs BUILD_DIR="build/debug/{{CXX}}"
make -C docs/ html
# TODO: Implement.
ci:
@! echo "Unimplemented"
alias h := help
help:
just --list --justfile {{justfile()}}
alias f := fmt
fmt:
nix fmt