-
Notifications
You must be signed in to change notification settings - Fork 5
/
justfile
38 lines (28 loc) · 824 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
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
export JSONWATCH_COMMAND := "target/debug/jsonwatch"
export TCLSH := "tclsh"
default: test
debug:
cargo build
[unix]
release: release-linux release-windows
[unix]
release-linux:
cargo build --release --target x86_64-unknown-linux-musl
cp target/x86_64-unknown-linux-musl/release/jsonwatch jsonwatch-linux-x86_64
strip jsonwatch-linux-x86_64
[unix]
release-windows:
cargo build --release --target i686-pc-windows-gnu
cp target/i686-pc-windows-gnu/release/jsonwatch.exe jsonwatch-win32.exe
strip jsonwatch-win32.exe
[unix]
test: debug test-unit test-integration
[windows]
test: debug test-unit
# The integration tests use Expect and do not work on Windows.
[unix]
test-integration:
"$TCLSH" tests/integration.tcl
test-unit:
cargo test