File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,11 @@ defmodule Mix.Tasks.Compile do
60
60
def run ( args ) do
61
61
Mix.Project . get!
62
62
Mix.Task . run "loadpaths" , args
63
+
63
64
res = Mix.Task . run "compile.all" , args
65
+ res = if :ok in List . wrap ( res ) , do: :ok , else: :noop
64
66
65
- if consolidate_protocols? ( ) do
67
+ if res == :ok && consolidate_protocols? ( ) do
66
68
Mix.Task . run "compile.protocols" , args
67
69
end
68
70
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ defmodule Mix.Tasks.CompileTest do
52
52
assert_received { :mix_shell , :info , [ "Consolidated Enumerable" ] }
53
53
assert File . regular? "_build/dev/consolidated/Elixir.Enumerable.beam"
54
54
55
+ assert Mix.Tasks.Compile . run ( [ ] ) == :noop
56
+ refute_received { :mix_shell , :info , [ "Consolidated Enumerable" ] }
57
+
55
58
assert Mix.Tasks.App.Start . run ( [ ] ) == :ok
56
59
assert Protocol . consolidated? ( Enumerable )
57
60
end
You can’t perform that action at this time.
0 commit comments