-
Notifications
You must be signed in to change notification settings - Fork 0
/
.justfile
36 lines (27 loc) · 1.21 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
set dotenv-load := true
set fallback := true
_targets:
@just --list --unsorted --list-heading $'Available targets:\n' --list-prefix " "
# runs a given program with either '.mojo' or '.🔥' extension
@run program:
magic run mojo {{program}}.*
# builds a given program with either '.mojo' or '.🔥' extension
@build program:
magic run mojo build {{program}}.*
# prints names and version numbers of the shared libraries for a given program
@libs program:
file {{program}}
otool -L {{program}}
# deletes a given program from the filesystem
@clean program:
rm -vf {{program}}
# updates the top-level flake lock file
@update:
nix flake update --commit-lock-file --commit-lockfile-summary "update Nix flake inputs"
# runs all tests under the examples directory
check:
#!/usr/bin/env sh
export PYTHONPATH=$(pwd)/projects/packages_with_a_single_tests_directory
magic run pytest -n 6 --mojo-include projects/packages_with_a_single_tests_directory projects/packages_with_a_single_tests_directory
export PYTHONPATH=$(pwd)/projects/packages_with_src_and_tests_directories/src
magic run pytest -n 6 --mojo-include projects/packages_with_src_and_tests_directories/src projects/packages_with_src_and_tests_directories/tests