diff --git a/mix.exs b/mix.exs index 0e44036..16245a1 100644 --- a/mix.exs +++ b/mix.exs @@ -65,7 +65,8 @@ defmodule Cachex.Mixfile do "coveralls.travis": :cover ], aliases: [ - bench: "run benchmarks/main.exs" + bench: "run benchmarks/main.exs", + test: [&start_epmd/1, "test"] ] ] end @@ -108,4 +109,10 @@ defmodule Cachex.Mixfile do {:ex_doc, "~> 0.29", optional: true, only: [:docs]} ] end + + defp start_epmd(_) do + {_, 0} = System.cmd("epmd", ["-daemon"]) + + :ok + end end