defmodule Ecto.Mixfile do use Mix.Project def project do [app: :ecto, version: "0.2.7", elixir: "~> 1.0", deps: deps, build_per_environment: false, test_paths: test_paths(Mix.env), description: description, package: package, # Docs name: "Ecto", docs: &docs/0, source_url: "https://github.com/elixir-lang/ecto"] end def application do [applications: [:decimal, :poolboy]] end defp deps do [{:poolboy, "~> 1.4.1"}, {:decimal, "~> 0.2.3"}, {:postgrex, "~> 0.6.0", optional: true}, {:ex_doc, "~> 0.6", only: :docs}, {:earmark, "~> 0.1", only: :docs}] end defp test_paths(:pg), do: ["integration_test/pg"] defp test_paths(:all), do: ["test", "integration_test/pg"] defp test_paths(_), do: ["test"] defp description do """ Ecto is a domain specific language for writing queries and interacting with databases in Elixir. """ end defp package do [contributors: ["Eric Meadows-Jönsson", "José Valim"], licenses: ["Apache 2.0"], links: %{"GitHub" => "https://github.com/elixir-lang/ecto"}] end defp docs do {ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"]) [source_ref: ref, main: "overview", readme: "README.md"] end end