Skip to content

Commit c10569d

Browse files
committed
Include tests in Makefile
Signed-off-by: Matteo Cafasso <[email protected]>
1 parent 2bfaf1d commit c10569d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ elixir_srcs := mix.exs
99

1010
app:: $(elixir_srcs) deps
1111
$(MIX) make_all
12+
tests:: export MIX_ENV=test
13+
tests:: $(elixir_srcs) deps
14+
$(MIX) make_tests
1215

1316
# FIXME: Use erlang.mk patched for RabbitMQ, while waiting for PRs to be
1417
# reviewed and merged.

mix.exs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ defmodule RabbitExchangeTypeMessageDeduplication.Mixfile do
1919
end
2020

2121
def application do
22+
applications = if (Mix.env == :test), do: [], else: [:rabbit]
23+
2224
[
23-
applications: [:rabbit],
25+
applications: applications,
2426
mod: {RabbitMQ.Supervisor, []},
2527
env: [exchange: "x-message-deduplication"],
2628
]
@@ -57,6 +59,9 @@ defmodule RabbitExchangeTypeMessageDeduplication.Mixfile do
5759
"deps.compile",
5860
"compile",
5961
],
62+
make_tests: [
63+
"test",
64+
]
6065
]
6166
end
6267
end

0 commit comments

Comments
 (0)