This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhauling the ci scripts to split them into singular steps, combining them in the run script. Signed-off-by: Fintan Halpenny <[email protected]>
- Loading branch information
Showing
10 changed files
with
49 additions
and
32 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,8 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
cargo deny --version | ||
cargo deny check advisories | ||
cargo deny check licenses | ||
cargo deny check bans | ||
cargo deny check sources |
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
cargo build --workspace | ||
GIT_FIXTURES=1 cargo test --workspace --features serialize |
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
RUSTDOCFLAGS="-D rustdoc::broken-intra-doc-links -D warnings" \ | ||
cargo doc --no-deps --workspace --document-private-items |
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,4 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
cargo +nightly fmt -- --check |
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,5 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
cargo build --workspace | ||
GIT_FIXTURES=1 cargo test --workspace --features serialize --features gh-actions |
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,4 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
cargo clippy --all-targets -- -D warnings |
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,4 @@ | ||
#!/usr/bin/env bash | ||
set -eoux pipefail | ||
|
||
cargo fmt -- --check |
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,8 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
./ci/nix/fmt | ||
./ci/lint | ||
./ci/build-test | ||
./ci/docs | ||
./ci/advisory |
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,34 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
echo '--- Formatting' | ||
cargo fmt -- --check | ||
|
||
echo '--- Clippy' | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
|
||
if [[ "${CI:-false}" = "true" ]] | ||
then | ||
sed -i -e 's|db-path.*|db-path = "/cache/cargo/advisory-db"|' deny.toml | ||
fi | ||
|
||
echo '--- deny: Advisories' | ||
cargo deny check advisories | ||
|
||
echo '--- deny: Licenses' | ||
cargo deny check licenses | ||
|
||
echo '--- deny: Bans' | ||
cargo deny check bans | ||
|
||
echo '--- deny: Sources' | ||
cargo deny check sources | ||
|
||
echo '--- Build' | ||
cargo build --verbose --workspace --all-features | ||
|
||
echo '--- Build & Test' | ||
GIT_FIXTURES=1 cargo test --workspace --all-features | ||
|
||
echo '--- Docs' | ||
cargo doc --no-deps | ||
./ci/fmt | ||
./ci/lint | ||
./ci/build-test | ||
./ci/docs | ||
./ci/advisory |
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