-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (65 loc) · 3.15 KB
/
Copy pathjustfile
File metadata and controls
79 lines (65 loc) · 3.15 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
pwd := `pwd`
default:
just -l
fmt:
cargo +nightly fmt
check:
cargo +nightly fmt --check
cargo clippy --all-targets --all-features --workspace -- -D warnings
cargo clippy --all-targets --all-features --workspace --release -- -D warnings
cargo deny check
check-nightly:
cargo +nightly fmt --check
cargo +nightly clippy --all-targets --all-features --workspace -- -D warnings
cargo +nightly clippy --all-targets --all-features --workspace --release -- -D warnings
cargo +nightly deny check
check-msvc:
cargo +nightly fmt --check
RUSTFLAGS='-Clink-arg=-fuse-ld=ld64.lld' cargo xwin clippy --all-targets --all-features --workspace --target aarch64-pc-windows-msvc -- -D warnings
RUSTFLAGS='-Clink-arg=-fuse-ld=ld64.lld' cargo xwin clippy --all-targets --all-features --workspace --release --target aarch64-pc-windows-msvc -- -D warnings
cargo deny check
build:
cargo build
build-msvc:
cargo xwin build --target aarch64-pc-windows-msvc
test-setup: test-teardown
docker build -t dante-test-img:no-auth -f ./test/Dockerfile \
--build-arg CONFIG=./test/dante_no_auth.conf .
docker build -t dante-test-img:password -f ./test/Dockerfile \
--build-arg CONFIG=./test/dante_password.conf .
docker run -d --rm --name dani1 -p 1084:1084/tcp -p 1084:1084/udp dante-test-img:no-auth
docker run -d --rm --name dani2 -p 1085:1085/tcp -p 1085:1085/udp dante-test-img:password
# Because we test in a docker container, we cannot send stuff to udp sockets on the host.
test:
cargo test --no-default-features --features client
test-teardown:
docker stop dani1 || true
docker stop dani2 || true
hack:
docker run -it --rm --pull=always \
--mount type=bind,source={{pwd}},target=/project \
--mount type=bind,source=$HOME/.cargo/registry,target=/usr/local/cargo/registry \
--entrypoint=/bin/bash \
ghcr.io/cargo-prebuilt/ink-cross:stable-native \
-c 'cargo prebuilt --ci cargo-hack && cargo hack check --each-feature --no-dev-deps --verbose --workspace && cargo hack check --feature-powerset --no-dev-deps --verbose --workspace'
msrv:
docker run -it --rm --pull=always \
--mount type=bind,source={{pwd}},target=/project \
--mount type=bind,source=$HOME/.cargo/registry,target=/usr/local/cargo/registry \
--entrypoint=/bin/bash \
ghcr.io/cargo-prebuilt/ink-cross:stable-native \
-c 'cargo prebuilt --ci cargo-msrv && cargo msrv find -- cargo check --verbose'
msrv-verify:
docker run -it --rm --pull=always \
--mount type=bind,source={{pwd}},target=/project \
--mount type=bind,source=$HOME/.cargo/registry,target=/usr/local/cargo/registry \
--entrypoint=/bin/bash \
ghcr.io/cargo-prebuilt/ink-cross:stable-native \
-c 'cargo prebuilt --ci cargo-msrv && cargo msrv verify -- cargo check --verbose --release'
semver-checks:
docker run -it --rm --pull=always \
--mount type=bind,source={{pwd}},target=/project \
--mount type=bind,source=$HOME/.cargo/registry,target=/usr/local/cargo/registry \
--entrypoint=/bin/bash \
ghcr.io/cargo-prebuilt/ink-cross:stable-native \
-c 'cargo prebuilt --ci cargo-semver-checks && cargo semver-checks'