-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Closes #53
- Loading branch information
Showing
6 changed files
with
46 additions
and
25 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
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,28 @@ | ||
#!/usr/bin/env bash | ||
# This scripts runs various CI-like checks in a convenient way. | ||
|
||
set -eu | ||
script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | ||
cd "$script_path" | ||
set -x | ||
|
||
export RUSTFLAGS="--deny warnings" | ||
|
||
# https://github.com/ericseppanen/cargo-cranky/issues/8 | ||
export RUSTDOCFLAGS="--deny warnings --deny rustdoc::missing_crate_level_docs" | ||
|
||
typos # cargo install typos-cli | ||
|
||
cargo fmt --all -- --check | ||
cargo cranky --quiet --all-targets --all-features -- --deny warnings | ||
cargo test --quiet --all-targets --all-features | ||
cargo test --quiet --doc --all-features # checks all doc-tests | ||
|
||
cargo cranky --quiet --lib --target wasm32-unknown-unknown --all-features | ||
|
||
cargo doc --quiet --no-deps --all-features | ||
cargo doc --quiet --document-private-items --no-deps --all-features | ||
|
||
cargo deny --all-features --log-level error check | ||
|
||
echo "All checks passed!" |
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//! Example application using [`eframe`]. | ||
mod app; | ||
|
||
pub use app::DemoApp; | ||
|
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