From 82349fbd2b90ce28cff54bc95753d84e34e4cab9 Mon Sep 17 00:00:00 2001 From: Patrick Wendell Date: Wed, 16 Apr 2014 09:43:17 -0700 Subject: Minor addition to SPARK-1497 --- dev/scalastyle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dev/scalastyle') 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 "\") if test ! -z "$ERRORS"; then echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS" -- cgit v1.2.3