-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# A script to run a simplified version of the checks done by CI. | ||
# | ||
# Usage | ||
# | ||
# ```sh | ||
# . ./ci.sh | ||
# ``` | ||
|
||
echo "Running 'cargo fmt -- --check'" | ||
RUSTFLAGS=-Dwarnings cargo +nightly fmt --all -- --check | ||
|
||
echo "Running 'cargo clippy'" | ||
RUSTFLAGS=-Dwarnings cargo +nightly clippy --all --all-features | ||
|
||
echo "Running 'cargo test'" | ||
RUSTFLAGS=-Dwarnings cargo +nightly test --all --all-features | ||
|
||
echo "Running 'cargo doc'" | ||
RUSTDOCFLAGS=-Dwarnings cargo +nightly doc --no-deps --all --all-features | ||
|
||
echo "Running 'compiletest'" | ||
. ./compiletest.sh |
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,5 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# A script to run compile tests with the same condition that pin-project executes with CI. | ||
# A script to run compile tests with the same condition of the checks done by CI. | ||
# | ||
# Usage | ||
# | ||
# ```sh | ||
# . ./compiletest.sh | ||
# ``` | ||
|
||
rm -rf target/debug/deps/libpin_project* && RUSTFLAGS='--cfg compiletest --cfg pin_project_show_unpin_struct' cargo test -p pin-project --all-features --test compiletest | ||
rm -rf target/debug/deps/libpin_project* && RUSTFLAGS='--cfg compiletest --cfg pin_project_show_unpin_struct' cargo +nightly test -p pin-project --all-features --test compiletest |