defmodule Ashton.MixProject do use Mix.Project @version "0.4.1" def project do [ app: :ashton, version: @version, elixir: "~> 1.0", start_permanent: Mix.env() == :prod, deps: deps(), description: "A schema based `opt` validator", docs: docs(), package: package(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ "coveralls.travis": :test ] ] end def docs do [ main: "readme", source_ref: "v#{@version}", canonical: "http://hexdocs.pm/ashton", source_url: "https://github.com/ash-project/ashton", extras: [ "README.md" ] ] end def package do [ maintainers: ["Zach Daniel"], licenses: ["MIT"], links: %{"GitHub" => "https://github.com/ash-project/ashton"}, source_url: "https://github.com/ash-project/ashton", files: ~w(.formatter.exs mix.exs README.md lib) ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger] ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:ex_doc, ">= 0.0.0", only: :dev}, {:credo, "~> 0.8", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.6", only: :test}, {:inch_ex, "~> 0.5", only: [:dev, :test]}, {:dialyxir, github: "jeremyjh/dialyxir", ref: "00c1e32153b54e4b54f0d33f999d642c00dcd72b", only: [:dev], runtime: false} ] end end