only require rustfmt and update_lints for version bumps
This commit is contained in:
parent
c76517d6c4
commit
0773b80d65
3 changed files with 12 additions and 10 deletions
|
@ -23,17 +23,11 @@ install:
|
|||
- nvm install stable
|
||||
- nvm use stable
|
||||
- npm install remark-cli remark-lint
|
||||
# || true, because we cache rustfmt and don't want to crash on the next travis run
|
||||
# due to rustfmt already being installed
|
||||
- (cargo install rustfmt || true)
|
||||
|
||||
script:
|
||||
- PATH=$PATH:./node_modules/.bin
|
||||
- remark -f README.md > /dev/null
|
||||
- python util/update_lints.py -c
|
||||
- set -e
|
||||
- PATH=$PATH:~/.cargo/bin cargo fmt -- --write-mode=diff
|
||||
- cd clippy_lints && PATH=$PATH:~/.cargo/bin cargo fmt -- --write-mode=diff && cd ..
|
||||
- cargo build --features debugging
|
||||
- cargo test --features debugging
|
||||
- mkdir -p ~/rust/cargo/bin
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
Steps to publish a new clippy version
|
||||
|
||||
1. `cargo test`.
|
||||
- Bump `package.version` in `./Cargo.toml` (no need to manually bump `dependencies.clippy_lints.version`).
|
||||
- Run `./util/update_lints.py`.
|
||||
- Run `./pre_publish.sh`
|
||||
- Write a changelog entry.
|
||||
- Commit `./Cargo.toml`, `./clippy_lints/Cargo.toml` and `./CHANGELOG.md`.
|
||||
- Review and commit all changed files
|
||||
- `git push`
|
||||
- Wait for Travis's approval.
|
||||
- Merge.
|
||||
- `cargo publish` in `./clippy_clints`.
|
||||
- `cargo publish` in the root directory.
|
||||
- `git pull`.
|
||||
- `git tag -s v0.0.X`.
|
||||
- `git tag -s v0.0.X -m "v0.0.X"`.
|
||||
- `git push --tags`.
|
||||
|
|
9
pre_publish.sh
Executable file
9
pre_publish.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd clippy_lints && cargo fmt && cd ..
|
||||
cargo fmt
|
||||
cargo test
|
||||
./util/update_lints.py
|
||||
|
Loading…
Add table
Reference in a new issue