Skip to content

Commit f52dd2b

Browse files
committed
Further automate pre_publish.sh
1 parent fde487c commit f52dd2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pre_publish.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ git commit -m "Bump the version"
1717

1818
set +e
1919

20+
echo "Running \`cargo fmt\`.."
21+
2022
cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
2123
cargo fmt -- --write-mode=overwrite
2224

23-
echo "remember to add a git tag and running 'cargo test' before committing the rustfmt changes"
25+
echo "Running tests to make sure \`cargo fmt\` did not break anything.."
26+
27+
cargo test
28+
29+
echo "If the tests passed, review and commit the formatting changes and remember to add a git tag."

0 commit comments

Comments
 (0)