File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ install:
22
22
- bash ci/install.sh
23
23
24
24
script :
25
+ # code must be already formatted
26
+ - cargo fmt -- --check
25
27
- bash ci/script.sh
26
28
27
29
after_script : set +e
Original file line number Diff line number Diff line change 5
5
cargo install cross
6
6
fi
7
7
8
+ rustup component add rustfmt-preview
9
+
8
10
rustup target add x86_64-unknown-linux-musl
9
11
10
12
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
Original file line number Diff line number Diff line change @@ -10,10 +10,8 @@ main() {
10
10
# generate tests
11
11
cargo run --package test-generator --target x86_64-unknown-linux-musl
12
12
13
- if cargo fmt --version > /dev/null 2>&1 ; then
14
- # nicer syntax error messages (if any)
15
- cargo fmt
16
- fi
13
+ # nicer syntax error messages (if any)
14
+ cargo fmt
17
15
18
16
# run tests
19
17
cross test --target $TARGET --release
You can’t perform that action at this time.
0 commit comments