-
Notifications
You must be signed in to change notification settings - Fork 6
/
justfile
52 lines (43 loc) · 1.42 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
set ignore-comments
build-augurs-js:
cd crates/augurs-js && \
rm -rf ./pkg && \
wasm-pack build --scope bsull --out-name augurs --release --target web -- --features parallel
test-augurs-js: build-augurs-js
cd crates/augurs-js/testpkg && \
npm ci && \
npm run typecheck && \
npm run test:ci
# Build and publish the augurs JS package to npm with the @bsull scope.
publish-augurs-js: test-augurs-js
cd crates/augurs-js && \
node prepublish && \
wasm-pack publish --access public
test:
cargo nextest run \
--all-features \
--workspace \
--exclude augurs-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).
test-all:
cargo nextest run \
--all-features \
--all-targets \
--workspace \
--exclude augurs-js \
--exclude pyaugurs \
-E 'not binary(/iai/)'
doctest:
# Ignore augurs-js and pyaugurs 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 augurs-js --exclude pyaugurs
doc:
cargo doc --all-features --workspace --exclude augurs-js --exclude pyaugurs --open
watch:
bacon
# Download the Prophet Stan model.
download-prophet-stan-model:
cargo run --features download --bin download-stan-model