Skip to content

Commit 294885b

Browse files
author
José Valim
committed
Default build_per_environment to true
1 parent 82cdc51 commit 294885b

File tree

22 files changed

+77
-102
lines changed

22 files changed

+77
-102
lines changed

lib/eex/mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ defmodule EEx.Mixfile do
22
use Mix.Project
33

44
def project do
5-
[app: :eex, version: System.version]
5+
[app: :eex, version: System.version, build_per_environment: false]
66
end
7-
end
7+
end

lib/elixir/mix.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ defmodule Elixir.Mixfile do
44
def project do
55
[ app: :elixir,
66
version: System.version,
7+
build_per_environment: false,
78
escript_embed_elixir: false,
89
escript_main_module: :elixir,
910
escript_emu_args: "%%! -noshell\n" ]

lib/ex_unit/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule ExUnit.Mixfile do
22
use Mix.Project
33

44
def project do
5-
[app: :ex_unit, version: System.version]
5+
[app: :ex_unit, version: System.version, build_per_environment: false]
66
end
77

88
def application do

lib/iex/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule IEx.Mixfile do
22
use Mix.Project
33

44
def project do
5-
[app: :iex, version: System.version]
5+
[app: :iex, version: System.version, build_per_environment: false]
66
end
77

88
def application do

lib/mix/lib/mix/project.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ defmodule Mix.Project do
329329
end
330330

331331
defp default_config do
332-
[ build_per_environment: false,
332+
[ build_per_environment: true,
333333
default_task: "run",
334334
deps: [],
335335
deps_path: "deps",

lib/mix/mix.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ defmodule Mix.Mixfile do
33

44
def project do
55
[ app: :mix,
6+
build_per_environment: false,
67
version: System.version,
78
escript_main_module: Mix.CLI ]
89
end

lib/mix/test/mix/cli_test.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule Mix.CLITest do
2525
end
2626
"""
2727
output = mix ""
28-
assert File.regular?("_build/shared/lib/p/ebin/Elixir.A.beam")
28+
assert File.regular?("_build/dev/lib/p/ebin/Elixir.A.beam")
2929
assert output =~ "Compiled lib/a.ex"
3030
end
3131
end
@@ -51,27 +51,27 @@ defmodule Mix.CLITest do
5151
end
5252
end
5353

54-
test "new with tests smoke test" do
54+
test "new with tests" do
5555
in_tmp "new_with_tests", fn ->
5656
output = mix "new ."
5757
assert output =~ "* creating lib/new_with_tests.ex"
5858
assert output =~ "* creating lib/new_with_tests/supervisor.ex"
5959

6060
output = mix "test test/new_with_tests_test.exs --cover"
61-
assert File.regular?("_build/shared/lib/new_with_tests/ebin/Elixir.NewWithTests.beam")
61+
assert File.regular?("_build/test/lib/new_with_tests/ebin/Elixir.NewWithTests.beam")
6262
assert output =~ "1 tests, 0 failures"
6363
assert output =~ "Generating cover results ..."
6464
assert File.regular?("cover/Elixir.NewWithTests.html")
6565
end
6666
end
6767

68-
test "new --bare with tests smoke test" do
68+
test "new --bare with tests" do
6969
in_tmp "new_with_tests", fn ->
7070
output = mix "new --bare ."
7171
assert output =~ "* creating lib/new_with_tests.ex"
7272

7373
output = mix "test"
74-
assert File.regular?("_build/shared/lib/new_with_tests/ebin/Elixir.NewWithTests.beam")
74+
assert File.regular?("_build/test/lib/new_with_tests/ebin/Elixir.NewWithTests.beam")
7575
assert output =~ "1 tests, 0 failures"
7676
end
7777
end

0 commit comments

Comments
 (0)