-
Notifications
You must be signed in to change notification settings - Fork 18
/
mix.exs
88 lines (82 loc) · 2.49 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
defmodule TestcontainersElixir.MixProject do
use Mix.Project
@app :testcontainers
@version "1.11.7"
@source_url "https://github.com/testcontainers/testcontainers-elixir"
def project do
[
app: @app,
name: "#{@app}",
version: @version,
description:
"Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.",
elixir: "~> 1.13",
source_url: @source_url,
homepage_url: @source_url,
aliases: aliases(),
deps: deps(),
dialyzer: [plt_add_apps: [:mix]],
package: [
files: ~w(lib docker_engine_api .formatter.exs mix.exs README* LICENSE*),
links: %{"GitHub" => @source_url},
licenses: ["MIT"]
],
test_coverage: [
summary: [threshold: 50],
ignore_modules: [
TestHelper,
Inspect.Testcontainers.TestUser
]
],
elixirc_paths: elixirc_paths(Mix.env())
]
end
defp elixirc_paths(:test), do: ["lib", "docker_engine_api", "test/support"]
defp elixirc_paths(_), do: ["lib", "docker_engine_api"]
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:elixir_uuid, "~> 1.2"},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:tesla, "~> 1.7"},
{:jason, "~> 1.4"},
{:hackney, "~> 1.20"},
# ecto module
{:ecto_sql, "~> 3.3", optional: true},
{:ecto, "~> 3.3", optional: true},
# mysql
{:myxql, "~> 0.4", only: [:dev, :test]},
# postgres
{:postgrex, "~> 0.14", only: [:dev, :test]},
# redis
{:redix, "~> 1.0", only: [:dev, :test]},
# ceph and minio
{:ex_aws, "~> 2.1", only: [:dev, :test]},
{:ex_aws_s3, "~> 2.0", only: [:dev, :test]},
{:sweet_xml, "~> 0.6", only: [:dev, :test]},
# cassandra
{:xandra, "~> 0.14", only: [:dev, :test]},
# kafka
{:kafka_ex, "~> 0.13", only: [:dev, :test]},
# Zookeeper
{:erlzk, "~> 0.6.2", only: [:dev, :test]},
# RabbitMQ
{:amqp, "~> 3.3", only: [:dev, :test]},
# EMQX
{:tortoise311, "~> 0.12.0", only: [:dev, :test]},
# For watching directories for file changes in mix task
{:fs, "~> 8.6"}
]
end
defp aliases do
[
setup: ["deps.get"],
citest: ["test --exclude flaky --cover"]
]
end
end