File tree Expand file tree Collapse file tree 5 files changed +31
-10
lines changed Expand file tree Collapse file tree 5 files changed +31
-10
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,5 @@ util/gh-pages/lints.json
27
27
28
28
# rustfmt backups
29
29
* .rs.bk
30
+
31
+ helper.txt
Original file line number Diff line number Diff line change @@ -23,17 +23,11 @@ install:
23
23
- nvm install stable
24
24
- nvm use stable
25
25
- npm install remark-cli remark-lint
26
- # || true, because we cache rustfmt and don't want to crash on the next travis run
27
- # due to rustfmt already being installed
28
- - (cargo install rustfmt || true)
29
26
30
27
script :
31
28
- PATH=$PATH:./node_modules/.bin
32
29
- remark -f README.md > /dev/null
33
- - python util/update_lints.py -c
34
30
- set -e
35
- - PATH=$PATH:~/.cargo/bin cargo fmt -- --write-mode=diff
36
- - cd clippy_lints && PATH=$PATH:~/.cargo/bin cargo fmt -- --write-mode=diff && cd ..
37
31
- cargo build --features debugging
38
32
- cargo test --features debugging
39
33
- mkdir -p ~/rust/cargo/bin
Original file line number Diff line number Diff line change 1
1
Steps to publish a new clippy version
2
2
3
- 1 . ` cargo test ` .
4
3
- Bump ` package.version ` in ` ./Cargo.toml ` (no need to manually bump ` dependencies.clippy_lints.version ` ).
5
- - Run ` ./util/update_lints.py ` .
4
+ - Run ` ./pre_publish.sh `
6
5
- Write a changelog entry.
7
- - Commit ` ./Cargo.toml ` , ` ./clippy_lints/Cargo.toml ` and ` ./CHANGELOG.md ` .
6
+ - Review and commit all changed files
8
7
- ` git push `
9
8
- Wait for Travis's approval.
10
9
- Merge.
11
10
- ` cargo publish ` in ` ./clippy_clints ` .
12
11
- ` cargo publish ` in the root directory.
13
12
- ` git pull ` .
14
- - ` git tag -s v0.0.X ` .
13
+ - ` git tag -s v0.0.X -m "v0.0.X" ` .
15
14
- ` git push --tags ` .
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ ./util/update_lints.py
6
+
7
+ git status --short | sort | grep -v README.md | grep -v helper.txt > helper.txt
8
+
9
+ # abort if the files differ
10
+ diff " publish.files" " helper.txt"
11
+
12
+ rm helper.txt
13
+
14
+ # add all changed files
15
+ git add .
16
+ git commit -m " Bump the version"
17
+
18
+ set +e
19
+
20
+ cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
21
+ cargo fmt -- --write-mode=overwrite
22
+
23
+ echo " remember to add a git tag and running 'cargo test' before committing the rustfmt changes"
Original file line number Diff line number Diff line change
1
+ M Cargo.toml
2
+ M CHANGELOG.md
3
+ M clippy_lints/Cargo.toml
You can’t perform that action at this time.
0 commit comments