defmodule Lab.Mixfile do use Mix.Project def project do [app: :lab, version: "0.2.1-dev", elixir: "~> 1.5.1", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, description: description(), package: package(), name: "Lab", source_url: "https://github.com/starbelly/lab", elixirc_paths: elixirc_paths(Mix.env), test_coverage: [tool: ExCoveralls], preferred_cli_env: [coveralls: :test], deps: deps(), docs: docs()] end # Configuration for the OTP application def application do [extra_applications: [:logger, :tesla, :hackney]] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp deps do [ {:hackney, "~> 1.9"}, {:plug, "~> 1.4"}, {:tesla, "~> 0.9"}, {:poison, ">= 1.0.0"}, {:bypass, "~> 0.8", only: :test}, {:excoveralls, "~> 0.7", only: :test}, {:ex_doc, ">= 0.0.0", only: :dev}, {:inch_ex, only: :docs}, {:credo, "~> 0.8", only: [:dev, :test], runtime: false} ] end defp docs do [ main: "Lab", assets: "assets", logo: "assets/logo-small.png", ] end defp description() do "Elixir wrapper for the GitLab API" end defp package() do [ files: ["lib", "mix.exs", "README.md", "LICENSE"], exclude_files: ["lib/mix"], maintainers: ["Bryan Paxton"], licenses: ["MIT"], links: %{"Gitlab" => "https://gitlab.com/starbelly/lab", "GitHub" => "https://github.com/starbelly/lab"}, ] end end