File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ elixir_srcs := mix.exs
99
1010app :: $(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.
Original file line number Diff line number Diff 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
6267end
You can’t perform that action at this time.
0 commit comments