Current section
Files
Jump to
Current section
Files
factory_ex
mix.exs
mix.exs
defmodule FactoryEx.MixProject do
use Mix.Project
def project do
[
app: :factory_ex,
version: "0.2.0",
elixir: "~> 1.13",
description: "Factories for elixir to help create data models at random, this works for any type of ecto structs",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
dialyzer: [
plt_add_apps: [:ex_unit, :mix, :credo, :ecto_sql],
list_unused_filters: true,
plt_local_path: "dialyzer",
plt_core_path: "dialyzer",
flags: [:unmatched_returns]
],
preferred_cli_env: [
dialyzer: :test,
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
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
[
{:ecto, "~> 3.0"},
{:faker, "~> 0.17"},
{:nimble_options, "~> 0.4"},
{:ecto_sql, "~> 3.0", only: [:test, :dev], optional: true},
{:postgrex, "~> 0.16", only: [:test, :dev], optional: true},
{:credo, "~> 1.6", only: [:test, :dev], runtime: false},
{:blitz_credo_checks, "~> 0.1", only: [:test, :dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, ">= 0.0.0", optional: true, only: :dev},
{:dialyxir, "~> 1.0", optional: true, only: :test, runtime: false}
]
end
defp package do
[
maintainers: ["Mika Kalathil"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/theblitzapp/factory_ex"},
files: ~w(mix.exs README.md CHANGELOG.md LICENSE lib config)
]
end
defp docs do
[
main: "FactoryEx",
source_url: "https://github.com/theblitzapp/factory_ex",
groups_for_modules: [
"General": [
FactoryEx,
FactoryEx.SchemaCounter
],
"Adapters": [
FactoryEx.Adapter
]
]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end