mirror of https://github.com/grpc/grpc-java.git
build: run unit tests on osx, ensure proto output included (#4081)
This adds back functionality that was accidentally dropped when porting from travis: - make sure generating protos will not lead to any uncomitted changes - actually run the unit tests
This commit is contained in:
parent
8c51683af1
commit
a45d07bcb5
|
|
@ -50,8 +50,17 @@ export LD_LIBRARY_PATH=/tmp/protobuf/lib
|
||||||
export LDFLAGS=-L/tmp/protobuf/lib
|
export LDFLAGS=-L/tmp/protobuf/lib
|
||||||
export CXXFLAGS="-I/tmp/protobuf/include"
|
export CXXFLAGS="-I/tmp/protobuf/include"
|
||||||
|
|
||||||
# Run tests
|
# Ensure all *.proto changes include *.java generated code
|
||||||
./gradlew assemble generateTestProto install $GRADLE_FLAGS
|
./gradlew assemble generateTestProto install $GRADLE_FLAGS
|
||||||
|
|
||||||
|
if [[ -z "${SKIP_CLEAN_CHECK:-}" && ! -z $(git status --porcelain) ]]; then
|
||||||
|
git status
|
||||||
|
echo "Error Working directory is not clean. Forget to commit generated files?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Run tests
|
||||||
|
./gradlew build
|
||||||
pushd examples
|
pushd examples
|
||||||
./gradlew build $GRADLE_FLAGS
|
./gradlew build $GRADLE_FLAGS
|
||||||
# --batch-mode reduces log spam
|
# --batch-mode reduces log spam
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue