defmodule Automaton.Mixfile do use Mix.Project def project do [app: :automaton, description: description(), package: package(), name: "Automaton", source_url: "https://github.com/flexnode/automaton", version: "0.1.1", elixir: "~> 1.4", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env), test_coverage: [tool: ExCoveralls], preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.semaphore": :test] ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] def application do [mod: {Automaton.Application, []}, extra_applications: [:logger]] end defp deps do [{:excoveralls, "~> 0.7", only: :test}, {:ex_doc, ">= 0.0.0", only: [:dev, :docs]}] end defp description do """ Automaton is an Elixir library that manages the conversation between your chat bot and the user by maintaining the messages and context in a GenServer. """ end defp package do [ name: :automaton, files: ["lib", "mix.exs", "README*", "LICENSE*"], maintainers: ["T.S. Lim"], licenses: ["MIT"], links: %{"GitHub" => "https://github.com/flexnode/automaton"} ] end end