-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.bat
More file actions
97 lines (73 loc) · 2.53 KB
/
test.bat
File metadata and controls
97 lines (73 loc) · 2.53 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@echo off
setlocal
set "MIRIFLAGS=-Zmiri-permissive-provenance"
set "RUSTDOCFLAGS=-D warnings"
echo clippy: stable
set "CARGO_TARGET_DIR=target\stable"
cargo +stable clippy --features "full" -- -D unused_unsafe -D warnings || goto :error
echo clippy: nightly
set "CARGO_TARGET_DIR=target\nightly"
cargo +nightly clippy --features "full_nightly" -- -D unused_unsafe -D warnings || goto :error
echo test: 1.46
set "CARGO_TARGET_DIR=target\1.46"
cargo +1.46.0 test --features "full" || goto :error
echo test: 1.47
set "CARGO_TARGET_DIR=target\1.47"
cargo +1.47.0 test --features "full" || goto :error
echo test: 1.49
set "CARGO_TARGET_DIR=target\1.49"
cargo +1.49.0 test --features "full" || goto :error
echo test: 1.50
set "CARGO_TARGET_DIR=target\1.50"
cargo +1.50.0 test --features "full" || goto :error
echo test: 1.52
set "CARGO_TARGET_DIR=target\1.52"
cargo +1.52.0 test --features "full,__dev" || goto :error
echo test: 1.56
set "CARGO_TARGET_DIR=target\1.56"
cargo +1.56.0 test --features "full,__dev" || goto :error
echo test: 1.57
set "CARGO_TARGET_DIR=target\1.57"
cargo +1.57.0 test --features "full,__dev" || goto :error
echo test: 1.58
set "CARGO_TARGET_DIR=target\1.58"
cargo +1.58.0 test --features "full,__dev" || goto :error
echo test: 1.61
set "CARGO_TARGET_DIR=target\1.61"
cargo +1.61.0 test --features "full,__dev" || goto :error
echo test: 1.64
set "CARGO_TARGET_DIR=target\1.64"
cargo +1.64.0 test --features "full,__dev" || goto :error
echo test: 1.71
set "CARGO_TARGET_DIR=target\1.71"
cargo +1.71.0 test --features "full,__dev" || goto :error
echo test: 1.73
set "CARGO_TARGET_DIR=target\1.73"
cargo +1.73.0 test --features "full,__dev" || goto :error
echo test: 1.75
set "CARGO_TARGET_DIR=target\1.75"
cargo +1.75.0 test --features "full,__dev" || goto :error
echo test: 1.81
set "CARGO_TARGET_DIR=target\1.81"
cargo +1.81.0 test --features "full,__dev" || goto :error
echo test: 1.83
set "CARGO_TARGET_DIR=target\1.83"
cargo +1.83.0 test --features "full,__dev" || goto :error
echo test: 1.89
set "CARGO_TARGET_DIR=target\1.89"
cargo +1.89.0 test --features "full,__dev" || goto :error
echo test: stable
set "CARGO_TARGET_DIR=target\stable"
cargo +stable test --features "full,__dev" || goto :error
echo test: nightly (miri)
set "CARGO_TARGET_DIR=target\nightly"
cargo +nightly miri test --features "full_nightly,__dev" || goto :error
cargo +nightly doc --features "full_nightly,__dev" || goto :error
echo All commands completed successfully.
endlocal
exit /b 0
:error
echo.
echo ERROR: a command failed. See output above.
endlocal
exit /b 1