aboutsummaryrefslogtreecommitdiff
path: root/buildscripts/kokoro/linux.sh
blob: 2feeab140b2a81e596148f61d162a965503b8cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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