diff options
author | rghetia <rghetia@yahoo.com> | 2018-05-03 10:16:41 -0700 |
---|---|---|
committer | rghetia <rghetia@yahoo.com> | 2018-05-03 15:28:53 -0700 |
commit | ddb443abff9a245dcfd6da1a36c36ca69d466309 (patch) | |
tree | f9c289359cc929fa36eecf76ac6cc11bb0f92744 /buildscripts | |
parent | e830beea50125ae280c010b37d7fa77b45f37e9d (diff) | |
download | opencensus-java-ddb443abff9a245dcfd6da1a36c36ca69d466309.tar.gz |
Add kokoro build scripts for osx platform.
* compiled on osx.
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/kokoro/linux.sh | 8 | ||||
-rw-r--r-- | buildscripts/kokoro/macos.cfg | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/buildscripts/kokoro/linux.sh b/buildscripts/kokoro/linux.sh index 2feeab14..e8aa21be 100755 --- a/buildscripts/kokoro/linux.sh +++ b/buildscripts/kokoro/linux.sh @@ -15,7 +15,9 @@ cd $(dirname $0)/../.. # Run tests ./gradlew clean build -pushd examples -./gradlew clean assemble check --stacktrace -popd +OS=`uname` +# Check the example only on Linux. +if [ "$OS" = "Linux" ] ; then + pushd examples; ./gradlew clean assemble check --stacktrace; popd +fi diff --git a/buildscripts/kokoro/macos.cfg b/buildscripts/kokoro/macos.cfg new file mode 100644 index 00000000..fe3a9803 --- /dev/null +++ b/buildscripts/kokoro/macos.cfg @@ -0,0 +1,6 @@ +# Config file for internal CI + +# Same script is used for macos as it is for Linux. +# Location of the continuous shell script in repository. +build_file: "opencensus-java/buildscripts/kokoro/linux.sh" +timeout_mins: 60 |