Skip to content

Commit 31ad440

Browse files
committed
fix: make just test use the right erl flags per project
1 parent 9cd1c86 commit 31ad440

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

justfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,27 @@ mix project="all" *args="":
3232
case {{ project }} in
3333
all)
3434
for proj in {{ apps }}; do
35-
(cd "apps/$proj" && elixir --erl "-start_epmd false -epmd_module Elixir.Expert.EPMD" -S mix {{args}})
35+
case $proj in
36+
expert)
37+
(cd "apps/$proj" && elixir --erl "-start_epmd false -epmd_module Elixir.Expert.EPMD" -S mix {{args}})
38+
;;
39+
engine)
40+
(cd "apps/$proj" && elixir --erl "-start_epmd false -dist_listen false" -S mix {{args}})
41+
;;
42+
*)
43+
(cd "apps/$proj" && mix {{args}})
44+
;;
45+
esac
3646
done
3747
;;
48+
expert)
49+
(cd "apps/expert" && elixir --erl "-start_epmd false -epmd_module Elixir.Expert.EPMD" -S mix {{args}})
50+
;;
51+
engine)
52+
(cd "apps/engine" && elixir --erl "-start_epmd false -dist_listen false" -S mix {{args}})
53+
;;
3854
*)
39-
(cd "apps/{{ project }}" && elixir --erl "-start_epmd false -epmd_module Elixir.Expert.EPMD" -S mix {{args}})
55+
(cd "apps/{{ project }}" && mix {{args}})
4056
;;
4157
esac
4258

0 commit comments

Comments
 (0)