defmodule Tortoise.MixProject do use Mix.Project @version "0.2.2" def project do [ app: :tortoise, version: @version, elixir: "~> 1.6.5", start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps(), dialyzer: dialyzer(), docs: docs(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.html": :test, "coveralls.json": :test, "coveralls.post": :test, docs: :docs ] ] end defp description() do """ A MQTT client for Elixir. """ end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger, :ssl], mod: {Tortoise.App, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:gen_state_machine, "~> 2.0.2"}, {:eqc_ex, "~> 1.4"}, {:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.8", only: :test}, {:ex_doc, "~> 0.18", only: :docs}, {:ct_helper, github: "ninenines/ct_helper", only: :test} ] end defp package() do [ maintainers: ["Martin Gausby"], licenses: ["Apache 2.0"], files: ["lib", "mix.exs", "README*", "CHANGELOG*", "LICENSE*"], links: %{"GitHub" => "https://github.com/gausby/tortoise"} ] end defp docs() do [ name: "Tortoise", source_ref: "v#{@version}", main: "introduction", canonical: "http://hexdocs.pm/tortoise", source_url: "https://github.com/gausby/tortoise", extras: [ "docs/introduction.md" ] ] end defp dialyzer() do [ ignore_warnings: "dialyzer.ignore" ] end end