automerge
This commit is contained in:
@ -5,6 +5,9 @@
|
|||||||
# Release tags use buildkite-release.yml instead
|
# Release tags use buildkite-release.yml instead
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- command: "ci/test-sanity.sh"
|
||||||
|
name: "sanity"
|
||||||
|
timeout_in_minutes: 5
|
||||||
- command: ". ci/rust-version.sh; ci/docker-run.sh $$rust_nightly_docker_image ci/test-checks.sh"
|
- command: ". ci/rust-version.sh; ci/docker-run.sh $$rust_nightly_docker_image ci/test-checks.sh"
|
||||||
name: "checks"
|
name: "checks"
|
||||||
timeout_in_minutes: 20
|
timeout_in_minutes: 20
|
||||||
|
@ -10,9 +10,6 @@ source ci/rust-version.sh nightly
|
|||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
export RUSTFLAGS="-D warnings"
|
export RUSTFLAGS="-D warnings"
|
||||||
|
|
||||||
# Look for failed mergify.io backports
|
|
||||||
_ git show HEAD --check --oneline
|
|
||||||
|
|
||||||
_ cargo +"$rust_stable" fmt --all -- --check
|
_ cargo +"$rust_stable" fmt --all -- --check
|
||||||
|
|
||||||
# Clippy gets stuck for unknown reasons if sdk-c is included in the build, so check it separately.
|
# Clippy gets stuck for unknown reasons if sdk-c is included in the build, so check it separately.
|
||||||
@ -23,10 +20,8 @@ _ cargo +"$rust_stable" clippy --manifest-path sdk-c/Cargo.toml -- --deny=warnin
|
|||||||
|
|
||||||
_ cargo +"$rust_stable" audit --version
|
_ cargo +"$rust_stable" audit --version
|
||||||
_ cargo +"$rust_stable" audit --ignore RUSTSEC-2020-0002 --ignore RUSTSEC-2020-0008
|
_ cargo +"$rust_stable" audit --ignore RUSTSEC-2020-0002 --ignore RUSTSEC-2020-0008
|
||||||
_ ci/nits.sh
|
|
||||||
_ ci/order-crates-for-publishing.py
|
_ ci/order-crates-for-publishing.py
|
||||||
_ docs/build.sh
|
_ docs/build.sh
|
||||||
_ ci/check-ssh-keys.sh
|
|
||||||
|
|
||||||
{
|
{
|
||||||
cd programs/bpf
|
cd programs/bpf
|
||||||
|
27
ci/test-sanity.sh
Executable file
27
ci/test-sanity.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
source ci/_
|
||||||
|
|
||||||
|
(
|
||||||
|
echo --- git show --check
|
||||||
|
set -x
|
||||||
|
# Look for failed mergify.io backports by searching leftover conflict markers
|
||||||
|
# Also check for any trailing whitespaces!
|
||||||
|
if [[ -n $BUILDKITE_PULL_REQUEST_BASE_BRANCH ]]; then
|
||||||
|
base_branch=$BUILDKITE_PULL_REQUEST_BASE_BRANCH
|
||||||
|
else
|
||||||
|
base_branch=$BUILDKITE_BRANCH
|
||||||
|
fi
|
||||||
|
git fetch origin "$base_branch"
|
||||||
|
git show "$(git merge-base HEAD "origin/$base_branch")..HEAD" --check --oneline
|
||||||
|
)
|
||||||
|
|
||||||
|
echo
|
||||||
|
|
||||||
|
_ ci/nits.sh
|
||||||
|
_ ci/check-ssh-keys.sh
|
||||||
|
|
||||||
|
echo --- ok
|
Reference in New Issue
Block a user