defmodule Lab.Mixfile do use Mix.Project def project do [app: :lab, version: "0.1.2", 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: [main: "readme", logo: "assets/logo.png", extras: ["README.md"]]] end # Configuration for the OTP application # # Type "mix help compile.app" for more information def application do # Specify extra applications you'll use from Erlang/Elixir [extra_applications: [:logger, :tesla, :hackney]] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] # Dependencies can be Hex packages: # # {:my_dep, "~> 0.3.0"} # # Or git/path repositories: # # {:my_dep, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} # # Type "mix help deps" for more examples and options defp deps do [ {:hackney, "~> 1.9"}, {:plug, "~> 1.4"}, {:tesla, "~> 0.8"}, {:poison, ">= 1.0.0"}, {:bypass, "~> 0.8", only: :test}, {:excoveralls, "~> 0.7", only: :test}, {:ex_doc, ">= 0.0.0", only: :dev} ] end defp description() do "Elixir wrapper for the GitLab API" end defp package() do [ files: ["lib", "mix.exs", "README.md", "LICENSE"], maintainers: ["Bryan Paxton"], licenses: ["MIT"], links: %{"Gitlab" => "https://gitlab.com/starbelly/lab", "GitHub" => "https://github.com/starbelly/lab"}, ] end end