-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
6 changed files
with
103 additions
and
121 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env bash | ||
# # | ||
# # Reference: https://github.com/koalaman/shellcheck/wiki/Directive | ||
# set -e | ||
# | ||
# Reference: https://github.com/koalaman/shellcheck/wiki/Directive | ||
set -e | ||
|
||
# cd "$(dirname "$0")/.." | ||
# ( | ||
# set -x | ||
# git ls-files -- '*.sh' ':(exclude)ci/semver_bash' \ | ||
# | xargs ci/docker-run.sh koalaman/shellcheck@sha256:fe24ab9a9b6b62d3adb162f4a80e006b6a63cae8c6ffafbae45772bab85e7294 --color=always --external-sources --shell=bash | ||
# ) | ||
cd "$(dirname "$0")/.." | ||
( | ||
set -x | ||
git ls-files -- '*.sh' ':(exclude)ci/semver_bash' \ | ||
| xargs ci/docker-run.sh koalaman/shellcheck@sha256:fe24ab9a9b6b62d3adb162f4a80e006b6a63cae8c6ffafbae45772bab85e7294 --color=always --external-sources --shell=bash | ||
) | ||
echo --- ok |
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,46 +1,46 @@ | ||
#!/usr/bin/env bash | ||
# set -e | ||
|
||
# cd "$(dirname "$0")/.." | ||
|
||
# source ci/_ | ||
# source ci/rust-version.sh stable | ||
# source ci/rust-version.sh nightly | ||
|
||
# export RUST_BACKTRACE=1 | ||
# export RUSTFLAGS="-D warnings" | ||
|
||
# # Look for failed mergify.io backports | ||
# _ git show HEAD --check --oneline | ||
|
||
# _ cargo +"$rust_stable" fmt --all -- --check | ||
|
||
# # Clippy gets stuck for unknown reasons if sdk-c is included in the build, so check it separately. | ||
# # See https://github.com/solana-labs/solana/issues/5503 | ||
# _ cargo +"$rust_stable" clippy --version | ||
# _ cargo +"$rust_stable" clippy --all --exclude solana-sdk-c -- --deny=warnings | ||
# _ cargo +"$rust_stable" clippy --manifest-path sdk-c/Cargo.toml -- --deny=warnings | ||
|
||
# _ cargo +"$rust_stable" audit --version | ||
# _ cargo +"$rust_stable" audit --ignore RUSTSEC-2020-0002 --ignore RUSTSEC-2020-0008 | ||
# _ ci/nits.sh | ||
# _ ci/order-crates-for-publishing.py | ||
# _ docs/build.sh | ||
# _ ci/check-ssh-keys.sh | ||
|
||
# { | ||
# cd programs/bpf | ||
# _ cargo +"$rust_stable" audit | ||
# for project in rust/*/ ; do | ||
# echo "+++ do_bpf_checks $project" | ||
# ( | ||
# cd "$project" | ||
# _ cargo +"$rust_stable" fmt -- --check | ||
# _ cargo +"$rust_nightly" test | ||
# _ cargo +"$rust_nightly" clippy --version | ||
# _ cargo +"$rust_nightly" clippy -- --deny=warnings --allow=clippy::missing_safety_doc | ||
# ) | ||
# done | ||
# } | ||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
source ci/_ | ||
source ci/rust-version.sh stable | ||
source ci/rust-version.sh nightly | ||
|
||
export RUST_BACKTRACE=1 | ||
export RUSTFLAGS="-D warnings" | ||
|
||
# Look for failed mergify.io backports | ||
_ git show HEAD --check --oneline | ||
|
||
_ cargo +"$rust_stable" fmt --all -- --check | ||
|
||
# Clippy gets stuck for unknown reasons if sdk-c is included in the build, so check it separately. | ||
# See https://github.com/solana-labs/solana/issues/5503 | ||
_ cargo +"$rust_stable" clippy --version | ||
_ cargo +"$rust_stable" clippy --all --exclude solana-sdk-c -- --deny=warnings | ||
_ cargo +"$rust_stable" clippy --manifest-path sdk-c/Cargo.toml -- --deny=warnings | ||
|
||
_ cargo +"$rust_stable" audit --version | ||
_ cargo +"$rust_stable" audit --ignore RUSTSEC-2020-0002 --ignore RUSTSEC-2020-0008 | ||
_ ci/nits.sh | ||
_ ci/order-crates-for-publishing.py | ||
_ docs/build.sh | ||
_ ci/check-ssh-keys.sh | ||
|
||
{ | ||
cd programs/bpf | ||
_ cargo +"$rust_stable" audit | ||
for project in rust/*/ ; do | ||
echo "+++ do_bpf_checks $project" | ||
( | ||
cd "$project" | ||
_ cargo +"$rust_stable" fmt -- --check | ||
_ cargo +"$rust_nightly" test | ||
_ cargo +"$rust_nightly" clippy --version | ||
_ cargo +"$rust_nightly" clippy -- --deny=warnings --allow=clippy::missing_safety_doc | ||
) | ||
done | ||
} | ||
|
||
echo --- ok |
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,54 +1,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
exit 0 | ||
|
||
# set -e | ||
# cd "$(dirname "$0")/.." | ||
|
||
# annotate() { | ||
# ${BUILDKITE:-false} && { | ||
# buildkite-agent annotate "$@" | ||
# } | ||
# } | ||
|
||
# ci/affects-files.sh \ | ||
# .rs$ \ | ||
# Cargo.lock$ \ | ||
# Cargo.toml$ \ | ||
# ^ci/rust-version.sh \ | ||
# ^ci/test-coverage.sh \ | ||
# ^scripts/coverage.sh \ | ||
# || { | ||
# annotate --style info --context test-coverage \ | ||
# "Coverage skipped as no .rs files were modified" | ||
# exit 0 | ||
# } | ||
|
||
# source ci/upload-ci-artifact.sh | ||
# source scripts/ulimit-n.sh | ||
|
||
# scripts/coverage.sh | ||
|
||
# report=coverage-"${CI_COMMIT:0:9}".tar.gz | ||
# mv target/cov/report.tar.gz "$report" | ||
# upload-ci-artifact "$report" | ||
|
||
# gzip -f target/cov/coverage-stderr.log | ||
# upload-ci-artifact target/cov/coverage-stderr.log.gz | ||
|
||
# annotate --style success --context lcov-report \ | ||
# "lcov report: <a href=\"artifact://$report\">$report</a>" | ||
|
||
# echo "--- codecov.io report" | ||
# if [[ -z "$CODECOV_TOKEN" ]]; then | ||
# echo "^^^ +++" | ||
# echo CODECOV_TOKEN undefined, codecov.io upload skipped | ||
# else | ||
# # We normalize CI to `1`; but codecov expects it to be `true` to detect Buildkite... | ||
# # Unfortunately, codecov.io fails sometimes: | ||
# # curl: (7) Failed to connect to codecov.io port 443: Connection timed out | ||
# CI=true bash <(while ! curl -sS --retry 5 --retry-delay 2 --retry-connrefused https://codecov.io/bash; do sleep 10; done) -Z -X gcov -f target/cov/lcov.info | ||
|
||
# annotate --style success --context codecov.io \ | ||
# "CodeCov report: https://codecov.io/github/solana-labs/solana/commit/${CI_COMMIT:0:9}" | ||
# fi | ||
set -e | ||
cd "$(dirname "$0")/.." | ||
|
||
annotate() { | ||
${BUILDKITE:-false} && { | ||
buildkite-agent annotate "$@" | ||
} | ||
} | ||
|
||
ci/affects-files.sh \ | ||
.rs$ \ | ||
Cargo.lock$ \ | ||
Cargo.toml$ \ | ||
^ci/rust-version.sh \ | ||
^ci/test-coverage.sh \ | ||
^scripts/coverage.sh \ | ||
|| { | ||
annotate --style info --context test-coverage \ | ||
"Coverage skipped as no .rs files were modified" | ||
exit 0 | ||
} | ||
|
||
source ci/upload-ci-artifact.sh | ||
source scripts/ulimit-n.sh | ||
|
||
scripts/coverage.sh | ||
|
||
report=coverage-"${CI_COMMIT:0:9}".tar.gz | ||
mv target/cov/report.tar.gz "$report" | ||
upload-ci-artifact "$report" | ||
|
||
gzip -f target/cov/coverage-stderr.log | ||
upload-ci-artifact target/cov/coverage-stderr.log.gz | ||
|
||
annotate --style success --context lcov-report \ | ||
"lcov report: <a href=\"artifact://$report\">$report</a>" | ||
|
||
echo "--- codecov.io report" | ||
if [[ -z "$CODECOV_TOKEN" ]]; then | ||
echo "^^^ +++" | ||
echo CODECOV_TOKEN undefined, codecov.io upload skipped | ||
else | ||
# We normalize CI to `1`; but codecov expects it to be `true` to detect Buildkite... | ||
# Unfortunately, codecov.io fails sometimes: | ||
# curl: (7) Failed to connect to codecov.io port 443: Connection timed out | ||
CI=true bash <(while ! curl -sS --retry 5 --retry-delay 2 --retry-connrefused https://codecov.io/bash; do sleep 10; done) -Z -X gcov -f target/cov/lcov.info | ||
|
||
annotate --style success --context codecov.io \ | ||
"CodeCov report: https://codecov.io/github/solana-labs/solana/commit/${CI_COMMIT:0:9}" | ||
fi |
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