Skip to content

Commit

Permalink
reduce noise strict
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Apr 30, 2024
1 parent c855080 commit a725bed
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions ci/run-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,41 @@ case $TARGET in
# ;;

test-integration)
cargo build --release --package runtime-integration-tests -vv
forge -V

echo "NOW TESTING"
cargo test --release --package runtime-integration-tests --features fast-runtime &
CARGO_PID=$!
BUILD_DISCOVERED=false
DEPS_DISCOVERED=false
while true; do
if [ -d "./target/" ]; then
if ls ./target/release/build/runtime-integration* 1> /dev/null 2>&1; then
ls -l ./target/release/build/runtime-integration*/out/
echo "release build directory exists."
BUILD_DISCOVERED=true
fi
if [ -d "./target/release/deps" ] && ls ./target/release/deps/runtime_integration* 1> /dev/null 2>&1; then
ls -l ./target/release/deps/runtime_integration*/out/
echo "Deps build directory exists."
DEPS_DISCOVERED=true
fi
if [ "$BUILD_DISCOVERED" = true ] && [ "$DEPS_DISCOVERED" = true ]; then
echo "Both build and dependency directories have been discovered."
break
fi
sleep 30
else
echo "Folder ./target not found"
sleep 5
fi
if ! ps -p $CARGO_PID > /dev/null; then
echo "Cargo process has finished."
break
fi
done
wait $CARGO_PID
exit $?
# echo "NOW TESTING"
cargo test --release --package runtime-integration-tests
# CARGO_PID=$!
# BUILD_DISCOVERED=false
# DEPS_DISCOVERED=false
# while true; do
# if [ -d "./target/" ]; then
# if ls ./target/release/build/runtime-integration* 1> /dev/null 2>&1; then
# ls -l ./target/release/build/runtime-integration*/out/
# echo "release build directory exists."
# BUILD_DISCOVERED=true
# fi
# if [ -d "./target/release/deps" ] && ls ./target/release/deps/runtime_integration* 1> /dev/null 2>&1; then
# ls -l ./target/release/deps/runtime_integration*/out/
# echo "Deps build directory exists."
# DEPS_DISCOVERED=true
# fi
# if [ "$BUILD_DISCOVERED" = true ] && [ "$DEPS_DISCOVERED" = true ]; then
# echo "Both build and dependency directories have been discovered."
# break
# fi
# sleep 30
# else
# echo "Folder ./target not found"
# sleep 5
# fi
# if ! ps -p $CARGO_PID > /dev/null; then
# echo "Cargo process has finished."
# break
# fi
# done
# wait $CARGO_PID
# exit $?
;;

lint-fmt)
Expand Down

0 comments on commit a725bed

Please sign in to comment.