Skip to content

Commit d3f78d6

Browse files
authored
Merge pull request #2962 from phansch/further_automate_pre_publish
Further automate pre_publish.sh
2 parents b87ab5c + 559b2f8 commit d3f78d6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pre_publish.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ set -e
44

55
./util/update_lints.py
66

7-
git status --short | sort | grep -v README.md | grep -v helper.txt | sort > helper.txt
8-
9-
# abort if the files differ
10-
diff "publish.files" "helper.txt"
11-
12-
rm helper.txt
13-
147
# add all changed files
158
git add .
169
git commit -m "Bump the version"
1710

1811
set +e
1912

13+
echo "Running \`cargo fmt\`.."
14+
2015
cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
2116
cargo fmt -- --write-mode=overwrite
2217

23-
echo "remember to add a git tag and running 'cargo test' before committing the rustfmt changes"
18+
echo "Running tests to make sure \`cargo fmt\` did not break anything.."
19+
20+
cargo test
21+
22+
echo "If the tests passed, review and commit the formatting changes and remember to add a git tag."

0 commit comments

Comments
 (0)