forked from ferrumfix/ferrumfix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
55 lines (44 loc) · 1.53 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
# Justfile docs: <https://just.systems/man/en/chapter_22.html>
export QUICKCHECK_TESTS := "2500"
# List available recipes
help:
@just --list
# Install the necessary tools to build and test FerrumFIX
install-tools: && _install-tools-after-binstall
cargo install cargo-binstall
_install-tools-after-binstall:
cargo binstall cargo-nextest --locked --secure --no-confirm
cargo binstall cargo-hack --locked --secure --no-confirm
cargo binstall cargo-udeps --locked --secure --no-confirm
cargo binstall zepter --locked --secure --no-confirm
rustup install nightly
rustup component add rustfmt --toolchain nightly
rustup install stable
# Run all linting steps
lint:
cargo +nightly fmt --check
RUSTFLAGS=-Awarnings cargo check --all-targets --all-features
zepter
# TODO: clippy
# TODO: RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features
# Run all tests
test:
cargo nextest run --workspace --all-features
# nextest does not support doctests yet: <https://github.com/nextest-rs/nextest/issues/16>.
cargo test --workspace --doc --all-features
# Run cargo-hack to test all different Cargo feature combinations
check-features:
RUSTFLAGS=-Awarnings cargo hack check --all --all-targets --each-feature
# Find unused dependencies
udeps:
RUSTFLAGS=-Awarnings cargo +nightly hack udeps --package fefix --feature-powerset --all-targets --depth 2
_init-submodules:
git submodule init
git submodule update
_make-quickcheck:
#!/usr/bin/env bash
set -euxo pipefail
mkdir -p lib/quickfix/config
cd lib/quickfix/config
cmake ..
make -j