Current section

Files

Jump to
csv mix.exs
Raw

mix.exs

defmodule CSV.Mixfile do
use Mix.Project
@source_url "https://github.com/beatrichartz/csv"
def project do
[
app: :csv,
version: "3.0.3",
elixir: "~> 1.5",
deps: deps(),
package: package(),
docs: &docs/0,
name: "CSV",
consolidate_protocols: true,
source_url: @source_url,
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
defp package do
[
maintainers: ["Beat Richartz"],
licenses: ["MIT"],
links: %{GitHub: @source_url}
]
end
defp deps do
[
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.14", only: :test},
{:benchfella, ">= 0.0.0", only: :bench},
{:eflame, "~> 1.0", only: :bench},
{:nimble_csv, ">= 0.0.0", only: :bench},
{:ex_doc, ">= 0.0.0", only: :docs, runtime: false},
{:inch_ex, "~> 0.5", only: :docs},
{:earmark, "~> 1.4", only: :docs}
]
end
defp docs do
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[
extras: ["CHANGELOG.md", "README.md"],
main: "readme",
source_ref: ref
]
end
end