defmodule Pivo.MixProject do use Mix.Project def project do [ app: :pivo, version: "0.1.0", elixir: "~> 1.9", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps(), description: description(), docs: docs(), package: package(), name: "Pivo", homepage_url: "https://github.com/fleetlink/pivo", source_url: "https://github.com/fleetlink/pivo" ] 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 [ {:httpoison, "~> 1.6"}, {:jason, "~> 1.2"}, {:plug_cowboy, "~> 2.0"}, {:dialyxir, "~> 1.0", only: :dev, runtime: false}, {:ex_doc, "~> 0.21", only: :dev, runtime: false}, {:bypass, "~> 1.0", only: :test}, {:credo, "~> 1.4", only: [:dev, :test], runtime: false} ] end defp description() do ~s|Pivo is an Elixir interface for the Pivotal Tracker REST API V5.| end defp docs() do [ main: "readme", extras: [ "README.md": [title: "Readme"], "LICENSE.md": [title: "License"] ], groups_for_modules: [ Behaviours: [ Pivo.Endpoint, Pivo.Resource ], Endpoints: [ Pivo.TrackerAPI.CommentEndpoint, Pivo.TrackerAPI.CommentsEndpoint, Pivo.TrackerAPI.MeEndpoint, Pivo.TrackerAPI.ProjectEndpoint, Pivo.TrackerAPI.ProjectsEndpoint, Pivo.TrackerAPI.StoryEndpoint, Pivo.TrackerAPI.StoriesEndpoint ], Resources: [ Pivo.Resources.AccountSummary, Pivo.Resources.Comment, Pivo.Resources.Me, Pivo.Resources.MembershipSummary, Pivo.Resources.PersonalSettings, Pivo.Resources.Project, Pivo.Resources.Story, Pivo.Resources.TimeZone ] ] ] end # Specifies which paths to compile per environment. defp elixirc_paths(:test), do: ["lib", "test/fixtures", "test/support"] defp elixirc_paths(_), do: ["lib"] defp package() do [ # This option is only needed when you don't want to use the OTP application name # name: "pivo", # organization: "possible-hexpm-namespace", licenses: ["MIT"], links: %{"GitHub" => "https://github.com/fleetlink/pivo"}, files: ~w(config lib .formatter.exs mix.exs README* LICENSE*) ] end end