defmodule Mockery.Mixfile do use Mix.Project @version "2.3.1" def project do [ app: :mockery, deps: deps(), description: description(), dialyzer: [ flags: [ :error_handling, :race_conditions, :underspecs, :unmatched_returns ], plt_add_apps: [:ex_unit, :mix] ], docs: [ extras: ["README.md", "EXAMPLES.md", "CHANGELOG.md", "MIGRATION_TO_OTP21.md"], main: "readme" ], elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env()), package: package(), preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.json": :test ], source_ref: @version, source_url: "https://github.com/appunite/mockery", test_coverage: [tool: ExCoveralls], version: @version ] end def application do [] end defp deps do [ {:beam_inspect, "~> 0.1.1", only: :dev, runtime: false}, {:credo, "~> 0.8", only: :dev, runtime: false}, {:dialyxir, "~> 0.5", only: :dev, runtime: false}, {:excoveralls, "~> 0.7", only: :test, runtime: false}, {:ex_doc, "~> 0.13", only: :dev, runtime: false} ] end defp description do "Simple mocking library for asynchronous testing." end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp package do [ maintainers: ["Tobiasz MaƂecki"], licenses: ["Apache 2.0"], links: %{ "GitHub" => "https://github.com/appunite/mockery", "Changelog" => "https://hexdocs.pm/mockery/changelog.html" } ] end end