diff options
Diffstat (limited to 'buildscripts')
| -rw-r--r-- | buildscripts/kokoro/linux.cfg | 5 | ||||
| -rwxr-xr-x | buildscripts/kokoro/linux.sh | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/buildscripts/kokoro/linux.cfg b/buildscripts/kokoro/linux.cfg new file mode 100644 index 00000000..0d9e253b --- /dev/null +++ b/buildscripts/kokoro/linux.cfg @@ -0,0 +1,5 @@ +# Config file for internal CI + +# Location of the continuous shell script in repository. +build_file: "opencensus-java/buildscripts/kokoro/linux.sh" +timeout_mins: 60
\ No newline at end of file diff --git a/buildscripts/kokoro/linux.sh b/buildscripts/kokoro/linux.sh new file mode 100755 index 00000000..2feeab14 --- /dev/null +++ b/buildscripts/kokoro/linux.sh @@ -0,0 +1,21 @@ +#!/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 +pushd examples +./gradlew clean assemble check --stacktrace +popd + |
