blob: 4c03c4ee0be3b544f6cfed7b34b21e19e50b7022 [file] [log] [blame]
#!/bin/bash
#
# Compiles the scala classes below with Heron and Storm APIs to verify compile compatibility. Once
# We have scala/bazel support we should remove this script and replace with bazel targets.
#
set -ex
dir=$(dirname $0)
root="$dir/../../../.."
function die {
echo $1
exit 1
}
which scalac || die "scalac must be installed to run this script. Exiting."
rm -f heron-storm.jar
(cd $root && bazel build --config=darwin scripts/packages:tarpkgs)
# Verify storm and heron bolts compile with heron-storm.jar
scalac -cp bazel-genfiles/./storm-compatibility/src/java/heron-storm.jar \
$dir/com/twitter/heron/examples/*.scala