aboutsummaryrefslogtreecommitdiff
path: root/dev/scalastyle
diff options
context:
space:
mode:
Diffstat (limited to 'dev/scalastyle')
-rwxr-xr-xdev/scalastyle8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev/scalastyle b/dev/scalastyle
index 7b572f6a89..a972811ba8 100755
--- a/dev/scalastyle
+++ b/dev/scalastyle
@@ -17,11 +17,13 @@
# limitations under the License.
#
-echo -e "q\n" | sbt/sbt clean scalastyle > scalastyle.txt
+echo -e "q\n" | SPARK_HIVE=true sbt/sbt scalastyle > scalastyle.txt
# Check style with YARN alpha built too
-SPARK_YARN=true sbt/sbt yarn/scalastyle >> scalastyle.txt
+echo -e "q\n" | SPARK_YARN=true sbt/sbt yarn/scalastyle >> scalastyle.txt
# Check style with YARN built too
-SPARK_HADOOP_VERSION=2.2.0 SPARK_YARN=true sbt/sbt yarn/scalastyle >> scalastyle.txt
+echo -e "q\n" | SPARK_HADOOP_VERSION=2.2.0 SPARK_YARN=true sbt/sbt yarn/scalastyle \
+ >> scalastyle.txt
+
ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
if test ! -z "$ERRORS"; then
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"