defmodule Bless.MixProject do use Mix.Project @version_file Path.join(__DIR__, ".version") @external_resource @version_file @version (case Regex.run(~r/^v([\d\.]+)/, File.read!(@version_file), capture: :all_but_first ) do [version] -> version nil -> "0.0.0" end) def project do [ app: :bless, version: @version, elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), preferred_cli_env: [ credo: :test, coveralls: :test, "coveralls.html": :test, bless: :test, test: :test ], test_coverage: [tool: ExCoveralls], bless_suite: [ compile: ["--warnings-as-errors", "--force"], "coveralls.html": [], format: ["--check-formatted"], credo: [] ], package: package(), description: description(), source_url: "https://github.com/NFIBrokerage/bless", name: "Bless", docs: docs() ] end defp elixirc_paths(:test), do: ["lib", "test/fixtures"] defp elixirc_paths(_), do: ["lib"] def application do [] end defp deps do [ # docs {:ex_doc, ">= 0.0.0", only: :dev, runtime: false, optional: true}, # test {:excoveralls, ">= 0.0.0", only: :test, optional: true}, {:credo, ">= 0.0.0", only: :test, runtime: false, optional: true} ] end defp package do [ name: "bless", files: ~w(lib .formatter.exs mix.exs README.md .version), licenses: [], links: %{"GitHub" => "https://github.com/NFIBrokerage/bless"} ] end defp description do "A mix task for running test suites" end defp docs do [ # do you reference other projects in your documentation? if so, add # them to the :deps key here. for an example, see # https://github.com/NFIBrokerage/projection/blob/5f406872d00156e2b94cfa9fae8e92a1aa4c177b/mix.exs#L88-L90 deps: [], extras: [ "CHANGELOG.md" ], groups_for_extras: [ Guides: Path.wildcard("guides/*.md") ] ] end end # Generated by Elixir.Gaas.Generators.Simple.LibraryMix