Skip to content

Commit

Permalink
Add YARN alpha / YARN profile to scalastyle check
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Apr 15, 2014
1 parent 026319c commit 80bf4c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/scalastyle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#

echo -e "q\n" | sbt/sbt clean scalastyle > scalastyle.txt
# Check style with YARN alpha built too
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
ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
if test ! -z "$ERRORS"; then
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"
Expand Down

0 comments on commit 80bf4c3

Please sign in to comment.