Avoid interop build instructions when already built

This reduces the amount of logspam generated during interop testing.
Telling someone how to build when they have already obviously built
doesn't serve much purpose, now that everyone is used to it not
building automatically.
This commit is contained in:
Eric Anderson 2018-10-11 13:51:58 -07:00
parent 5362017c5a
commit fab303b26e
2 changed files with 16 additions and 12 deletions

View File

@ -1,9 +1,11 @@
#!/bin/bash -e
cd "$(dirname "$0")"
cat >&2 <<EOF
Gradle is no longer run automatically. Make sure to run
'./gradlew installDist -PskipCodegen=true' or
'./gradlew :grpc-interop-testing:installDist -PskipCodegen=true' after any
changes. -PskipCodegen=true is optional, but requires less setup.
BIN="./interop-testing/build/install/grpc-interop-testing/bin/test-client"
if [[ ! -e "$BIN" ]]; then
cat >&2 <<EOF
Could not find binary. It can be built with:
./gradlew :grpc-interop-testing:installDist -PskipCodegen=true
EOF
exec ./interop-testing/build/install/grpc-interop-testing/bin/test-client "$@"
exit 1
fi
exec "$BIN" "$@"

View File

@ -1,9 +1,11 @@
#!/bin/bash -e
cd "$(dirname "$0")"
cat >&2 <<EOF
Gradle is no longer run automatically. Make sure to run
'./gradlew installDist -PskipCodegen=true' or
'./gradlew :grpc-interop-testing:installDist -PskipCodegen=true' after any
changes. -PskipCodegen=true is optional, but requires less setup.
BIN="./interop-testing/build/install/grpc-interop-testing/bin/test-server"
if [[ ! -e "$BIN" ]]; then
cat >&2 <<EOF
Could not find binary. It can be built with:
./gradlew :grpc-interop-testing:installDist -PskipCodegen=true
EOF
exec ./interop-testing/build/install/grpc-interop-testing/bin/test-server "$@"
exit 1
fi
exec "$BIN" "$@"