forked from franklynwang/EcneProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (25 loc) · 724 Bytes
/
justfile
File metadata and controls
32 lines (25 loc) · 724 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
julia := "julia --project=."
install:
{{julia}} -e "import Pkg; Pkg.instantiate()"
repl:
{{julia}}
notebook:
{{julia}} -e "import Pluto; Pluto.run()"
format:
{{julia}} -e "using JuliaFormatter; format(\"src\", verbose=true); format(\"test\", verbose=true); format(\"bench\", verbose=true)"
bench:
{{julia}} bench/bench.jl
check:
if [[ $(git diff --name-only) ]]; then \
>&2 echo "Please run check on a clean Git working tree."; \
exit 1; \
fi
just format
files=$(git diff --name-only); \
if [[ $files ]]; then \
>&2 echo "Formatting issues found:"; \
>&2 echo "$files"; \
exit 1; \
fi
test:
{{julia}} -e "import Pkg; Pkg.test()"