forked from jacg/petalo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
40 lines (28 loc) · 754 Bytes
/
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
# -*-Makefile-*-
test: test-rust test-python
test-rust colours='':
just test-rust-pure {{colours}}
test-rust-pure colours='':
cargo nextest run {{colours}} --workspace --exclude bindings
test-python colours='': python-build-bindings
pytest -v {{colours}} src bindings
test-python-pure colours='':
pytest -v {{colours}} src
test-python-bindings colours='': python-build-bindings
pytest -v {{colours}} bindings
python-build-bindings profile='default':
#!/usr/bin/env sh
cd bindings
case {{profile}} in
default )
cargo build
ln -fs ../target/debug/libfulano.so fulano.so
;;
release )
cargo build --release
ln -fs ../target/release/libfulano.so fulano.so
;;
* )
echo Unknown profile {{profile}}
exit 1
esac