defmodule CSV.Mixfile do use Mix.Project def project do [ app: :csv, version: "2.0.0", elixir: "~> 1.1", deps: deps(), package: package(), docs: &docs/0, name: "CSV", consolidate_protocols: true, source_url: "https://github.com/beatrichartz/csv", description: "CSV Decoding and Encoding for Elixir", elixirc_paths: elixirc_paths(), test_coverage: [tool: ExCoveralls], preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test] ] end defp elixirc_paths do if Mix.env == :test do ["lib", "test/support"] else ["lib"] end end def application do [applications: [:parallel_stream]] end defp package do [ maintainers: ["Beat Richartz"], licenses: ["MIT"], links: %{github: "https://github.com/beatrichartz/csv" } ] end defp deps do [ {:parallel_stream, "~> 1.0.4"}, {:excoveralls, "~> 0.5", only: :test}, {:benchfella, ">= 0.0.0", only: :bench}, {:ex_csv, ">= 0.0.0", only: :bench}, {:csvlixir, ">= 0.0.0", only: :bench}, {:cesso, ">= 0.0.0", only: :bench}, {:ex_doc, "0.9.0", only: :docs}, {:inch_ex, ">= 0.0.0", only: :docs}, {:earmark, "0.1.19", only: :docs} ] end defp docs do {ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"]) [ source_ref: ref, main: "overview" ] end end