-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[num-format] Add justfile to replace scripts
- Loading branch information
Showing
8 changed files
with
55 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,10 @@ problem, any possible alternatives, and any disadvantages. | |
development, including the submodule: | ||
|
||
```bash | ||
$ git clone [email protected]:bcmyers/num-format.git | ||
$ cd num-format | ||
$ git submodule init | ||
$ git submodule update | ||
git clone [email protected]:bcmyers/num-format.git | ||
cd num-format | ||
git submodule init | ||
git submodule update | ||
``` | ||
|
||
### Running the test suite | ||
|
@@ -34,10 +34,22 @@ tests for you. | |
|
||
To run the full test suite: | ||
|
||
* Install [just](https://github.com/casey/just) if it is not already installed | ||
|
||
```bash | ||
cargo install just | ||
``` | ||
|
||
* Install [cargo-hack](https://github.com/taiki-e/cargo-hack) if it is not already installed | ||
|
||
```bash | ||
cargo install cargo-hack | ||
``` | ||
|
||
* Make sure you're in the root directory (the directory with the workspace Cargo.toml), and then... | ||
|
||
```bash | ||
$ ./scripts/test.sh | ||
just test | ||
``` | ||
|
||
### num-format-dev | ||
|
@@ -55,7 +67,7 @@ To run num-format-dev (thereby re-creating `num-format/src/locale.rs`): | |
* Make sure you're in the root directory (the directory with the workspace Cargo.toml), and then... | ||
|
||
```bash | ||
$ ./scripts/locale.sh | ||
just locale | ||
``` | ||
|
||
You only need to run num-format-dev if you wish to modify `num-format/src/locale.rs`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
default: check | ||
|
||
bench: | ||
cargo bench --manifest-path num-format-benches/Cargo.toml | ||
|
||
check: | ||
cargo clippy --all-features --all-targets --tests --workspace | ||
|
||
clippy: check | ||
|
||
fmt: | ||
cargo fmt --all | ||
|
||
locale: | ||
cargo run --manifest-path num-format-dev/Cargo.toml | ||
cargo fmt --all | ||
|
||
readme: | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
( | ||
cd num-format | ||
cargo readme > README.md | ||
) | ||
cp num-format/README.md ./README.md | ||
( | ||
cd num-format-windows | ||
cargo readme > README.md | ||
) | ||
test: | ||
cargo fmt --all --check | ||
cargo clippy --all-features --all-targets --tests --workspace -- -D warnings | ||
cargo hack --package num-format --feature-powerset test | ||
cargo hack --package num-format-benches --feature-powerset test | ||
cargo hack --package num-format-dev --feature-powerset test | ||
cargo hack --package num-format-windows --feature-powerset test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.