Skip to content

Commit

Permalink
feat(testing): convert CI to use Makefile for testing (#8940)
Browse files Browse the repository at this point in the history
  • Loading branch information
muncus committed Jan 23, 2024
1 parent 98fed7a commit 8bb2ecd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .kokoro/tests/run_test_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
# limitations under the License.

file="$(pwd)"
project_root="$(git rev-parse --show-toplevel)"
rel_dir=$(realpath --relative-to=${project_root} $file)
SCRIPT_DIR="$(dirname $0)/"

# Fail the tests if no Java version was found.
Expand Down Expand Up @@ -67,13 +69,10 @@ if [[ "$file" == *"functions/helloworld/"* ]]; then
fi

# Use maven to execute the tests for the project.
mvn --quiet --batch-mode --fail-at-end clean verify \
-Dfile.encoding="UTF-8" \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dmaven.test.redirectTestOutputToFile=true \
-Dbigtable.projectID="${GOOGLE_CLOUD_PROJECT}" \
-Dbigtable.instanceID=instance
pushd ${project_root}
make test dir=${rel_dir}
EXIT=$?
popd

# Tear down (deployed) Cloud Functions after deployment tests are run
if [[ "$file" == *"functions/helloworld/"* ]]; then
Expand Down

0 comments on commit 8bb2ecd

Please sign in to comment.