defmodule ActiveSchema.Mixfile do use Mix.Project def project do version = "1.0.0" if Mix.env() == :prod do [ app: :active_schema, version: version, elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), package: package(), name: "ActiveSchema", source_url: "https://github.com/spiceworks/active_schema" ] else [ app: :active_schema, version: version, elixir: "~> 1.3", elixirc_paths: elixirc_paths(Mix.env()), build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test ], deps: deps(), package: package(), name: "ActiveSchema", source_url: "https://github.com/spiceworks/active_schema" ] end end # Configuration for the OTP application # # Type "mix help compile.app" for more information def application do [ applications: [ :logger, :phoenix_ecto, :inflex ] ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "web", "test"] defp elixirc_paths(_), do: ["lib"] # Dependencies can be Hex packages: # # {:mydep, "~> 0.3.0"} # # Or git/path repositories: # # {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"} # # Type "mix help deps" for more examples and options defp deps do [ {:phoenix_ecto, "~> 3.3"}, {:inflex, "~> 1.9"}, {:credo, "~> 0.8", only: [:dev, :test]}, {:excoveralls, "~> 0.8", only: :test}, {:ex_doc, ">= 0.0.0", only: :dev} ] end defp package() do [ name: "active_schema", # These are the default files included in the package files: ~w(lib .formatter.exs mix.exs README* LICENSE*), description: "Rails like auto generated Ecto functions", licenses: ["MIT"], links: %{"GitHub" => "https://github.com/spiceworks/active_schema"} ] end end