-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjustfile
57 lines (46 loc) · 1.59 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set ignore-comments
build-augurs-js:
rm -rf js/augurs/*
just js/build
test-augurs-js: build-augurs-js
just js/test
# Build and publish the augurs JS package to npm with the @bsull scope.
publish-augurs-js: test-augurs-js
just js/publish
# Run unit tests
test:
cargo nextest run \
--all-features \
--workspace \
--exclude *-js \
--exclude pyaugurs
# Run all unit and integration tests, plus examples and benchmarks, except for those which require `iai` (which isn't available on all platforms) and the Prophet benchmarks which require a STAN installation.
test-all:
cargo nextest run \
--all-features \
--all-targets \
--workspace \
--exclude *-js \
--exclude pyaugurs \
-E 'not (binary(/iai/) | binary(/prophet-cmdstan/))'
doctest:
# Ignore JS and pyaugurs crates since they either won't compile with all features enabled
# or doesn't have any meaningful doctests anyway, since they're not published.
cargo test \
--doc \
--all-features \
--workspace \
--exclude *-js \
--exclude pyaugurs \
doc:
cargo doc --all-features --workspace --exclude *-js --exclude pyaugurs --open
watch:
bacon
# Download the Prophet Stan model.
download-prophet-stan-model:
cargo run --features download --bin download-stan-model
copy-component-wasm:
cp components/cpp/prophet-wasmstan/prophet-wasmstan.wasm crates/augurs-prophet/prophet-wasmstan.wasm
# Rebuild the prophet-wasmstan WASM component. Requires a local runner with the `act` tool.
rebuild-component:
act --bind --artifact-server-path=/tmp/artifacts -W ./.github/workflows/wasmstan.yml