From 905ca8030469b59df728e3cb29f8a18f20e73a54 Mon Sep 17 00:00:00 2001 From: Josh Rosen Date: Thu, 25 Dec 2014 00:21:20 -0800 Subject: [PATCH] Add Travis CI and Scalastyle configurations. Remove Spark staging repository now that 1.2.0 has been released. --- .travis.yml | 11 ++ README.md | 2 + build.sbt | 2 - scalastyle-config.xml | 144 ++++++++++++++++++ .../databricks/spark/csv/DefaultSource.scala | 3 +- 5 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 .travis.yml create mode 100644 scalastyle-config.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1c4fe26 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: scala +scala: + - 2.10.4 +jdk: + - openjdk7 + - openjdk6 +sudo: false +script: + - sbt -jvm-opts travis/jvmopts.compile compile + - sbt -jvm-opts travis/jvmopts.test test + - sbt -jvm-opts travis/jvmopts.test scalastyle diff --git a/README.md b/README.md index 58cdf9e..c6a6571 100755 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ A library for parsing and querying CSV data with [Spark SQL](http://spark.apache.org/docs/latest/sql-programming-guide.html). +[![Build Status](https://travis-ci.org/databricks/spark-csv.svg?branch=master)](https://travis-ci.org/databricks/spark-csv) + ## Requirements This library requires Spark 1.2+ diff --git a/build.sbt b/build.sbt index fb705ff..0be22e0 100755 --- a/build.sbt +++ b/build.sbt @@ -10,8 +10,6 @@ libraryDependencies += "org.apache.spark" %% "spark-sql" % "1.2.0" % "provided" libraryDependencies += "org.apache.commons" % "commons-csv" % "1.1" -resolvers += "Spark Staging Repository" at "https://repository.apache.org/content/repositories/orgapachespark-1038/" - publishMavenStyle := true publishTo := { diff --git a/scalastyle-config.xml b/scalastyle-config.xml new file mode 100644 index 0000000..8b627a2 --- /dev/null +++ b/scalastyle-config.xml @@ -0,0 +1,144 @@ + + + + + + + + + + Scalastyle standard configuration + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/scala/com/databricks/spark/csv/DefaultSource.scala b/src/main/scala/com/databricks/spark/csv/DefaultSource.scala index da235ed..ad049ee 100755 --- a/src/main/scala/com/databricks/spark/csv/DefaultSource.scala +++ b/src/main/scala/com/databricks/spark/csv/DefaultSource.scala @@ -56,4 +56,5 @@ class DefaultSource extends RelationProvider { CsvRelation(path, headerFlag, delimiterChar, quoteChar)(sqlContext) } -} \ No newline at end of file +} +