Files
rk35xx-android14/external/opencensus-java/buildscripts/kokoro/linux.sh
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

24 lines
594 B
Bash
Executable File

#!/bin/bash
# This file is used for Linux builds.
# To run locally:
# ./buildscripts/kokoro/linux.sh
# This script assumes `set -e`. Removing it may lead to undefined behavior.
set -exu -o pipefail
# It would be nicer to use 'readlink -f' here but osx does not support it.
readonly OPENCENSUS_JAVA_DIR="$(cd "$(dirname "$0")"/../.. && pwd)"
# cd to the root dir of opencensus-java
cd $(dirname $0)/../..
# Run tests
./gradlew clean build
OS=`uname`
# Check the example only on Linux.
if [ "$OS" = "Linux" ] ; then
pushd examples; ./gradlew clean assemble check --stacktrace; popd
fi