Packages

Elixir version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project.

Current section

Files

Jump to
Raw

mix.exs

defmodule PactElixir.MixProject do
@moduledoc false
use Mix.Project
@version "0.5.2-rc.8"
def project do
[
app: :pact_elixir,
version: @version,
elixir: "~> 1.7",
name: "PactElixir",
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
compilers: Mix.compilers(),
source_url: "https://github.com/elitau/pact_elixir",
homepage_url: "https://github.com/elitau/pact_elixir",
# The main page in the docs
docs: [main: "readme", extras: ["README.md"]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :inets, :public_key],
mod: {PactElixir.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:rustler, "~> 0.23"},
{:poison, "~> 5.0"},
{:ex_doc, "~> 0.28.0", only: :dev, runtime: false},
{:httpoison, "~> 1.0", only: :test},
{:excoveralls, "~> 0.12", only: :test},
{:temp, "~> 0.4", only: :test},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false},
{:inch_ex, "~> 2.0.0", only: :docs},
{:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:castore, "~> 0.1"}
]
end
defp description do
"""
Elixir version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project.
"""
# TODO Also provides interaction playback and verification for the service provider project.
end
defp package do
[
maintainers: ["Eduard Litau"],
licenses: ["MIT"],
files: ["lib", "native", "mix.exs", "README.md", "LICENSE"],
links: %{"GitHub" => "https://github.com/elitau/pact_elixir"},
source_url: "https://github.com/elitau/pact_elixir"
]
end
end