Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Compile all source code with stable and nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jun 16, 2020
1 parent 3ab49d8 commit 78dc87d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/test-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ echo --- build environment
export RUST_BACKTRACE=1
export RUSTFLAGS="-D warnings"

if _ scripts/cargo-for-all-lock-files.sh +"$rust_nightly" check --locked --all-targets; then
# Exclude --benches as it's not available in rust stable yet
if _ scripts/cargo-for-all-lock-files.sh +"$rust_stable" check --locked --tests --bins --examples; then
true
else
check_status=$?
echo "Some Cargo.lock is outdated; please update them as well"
echo "Some Cargo.lock might be outdated; update them (or just be a compilation error?)"
echo "protip: you can use ./scripts/cargo-for-all-lock-files.sh [check|update] ..."
exit "$check_status"
fi
# Ensure nightly and --benches
_ scripts/cargo-for-all-lock-files.sh +"$rust_nightly" check --locked --all-targets

_ ci/order-crates-for-publishing.py
_ cargo +"$rust_stable" fmt --all -- --check
Expand Down

0 comments on commit 78dc87d

Please sign in to comment.