2018-05-27 05:38:50 +08:00
|
|
|
#!/usr/bin/env bash
|
2018-08-09 07:24:37 -07:00
|
|
|
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
|
|
set -e
|
|
|
|
# Show explicitly which commands are currently running.
|
|
|
|
set -x
|
|
|
|
|
2018-05-27 05:38:50 +08:00
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
|
|
|
|
pushd $ROOT_DIR/../java
|
2019-03-07 09:59:13 +08:00
|
|
|
echo "Compiling Java code."
|
2018-05-27 05:38:50 +08:00
|
|
|
mvn clean install -Dmaven.test.skip
|
2019-03-07 09:59:13 +08:00
|
|
|
|
|
|
|
echo "Checking code format."
|
|
|
|
mvn checkstyle:check
|
|
|
|
|
|
|
|
echo "Running tests under cluster mode."
|
|
|
|
ENABLE_MULTI_LANGUAGE_TESTS=1 mvn test
|
|
|
|
|
|
|
|
echo "Running tests under single-process mode."
|
|
|
|
mvn test -Dray.run-mode=SINGLE_PROCESS
|
|
|
|
|
|
|
|
set +x
|
|
|
|
set +e
|
2018-08-02 08:52:49 +08:00
|
|
|
|
|
|
|
popd
|