diff options
author | rghetia <rghetia@yahoo.com> | 2018-04-30 15:41:41 -0700 |
---|---|---|
committer | rghetia <rghetia@yahoo.com> | 2018-04-30 22:11:53 -0700 |
commit | 016568353183a08450395c59a983c35008090faf (patch) | |
tree | 5d68ecdd3b292529aa8c2148ac8f54d6c803d4c0 | |
parent | 25f0932fac496e42b70ebdc5d6d890bdb9f10c48 (diff) | |
download | opencensus-java-016568353183a08450395c59a983c35008090faf.tar.gz |
Add build script and configure for Internal CI build.
-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 + |