forked from testcontainers/testcontainers-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
100 lines (94 loc) · 2.84 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
89
90
91
92
93
94
95
96
97
98
99
100
defmodule TestcontainersElixir.MixProject do
use Mix.Project
@app :testcontainers
@version "1.6.0"
@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(),
package: [
links: %{"GitHub" => @source_url},
licenses: ["MIT"]
],
test_coverage: [
summary: [threshold: 75],
ignore_modules: [
TestHelper,
Inspect.Testcontainers.TestUser,
# deprecated
Testcontainers.Container.MySqlContainer,
# deprecated
Testcontainers.Container.PostgresContainer,
# deprecated
Testcontainers.Container.RedisContainer,
# deprecated
Testcontainers.Container.SeleniumContainer,
# deprecated
Testcontainers.Container.CephContainer
]
],
elixirc_paths: elixirc_paths(Mix.env())
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
extra_applications: [:logger]
]
end
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:uuid, "~> 1.1"},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
# docker api
{:ex_docker_engine_api, "~> 1.43.1"},
# 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]}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get"]
]
end
end