1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
Author: Evgeny Golyshev <eugulixes@gmail.com>
Description: disable rebar3 tests
We have to disable all of the tests related to rebar3 because Stretch and Sid
don't have it so far.
--- elixir-lang-1.3.3.orig/lib/mix/test/test_helper.exs
+++ elixir-lang-1.3.3/lib/mix/test/test_helper.exs
@@ -169,8 +169,8 @@ System.put_env("MIX_HOME", home)
rebar = System.get_env("REBAR") || Path.expand("../../../rebar", __DIR__)
File.cp!(rebar, Path.join(home, "rebar"))
-rebar = System.get_env("REBAR3") || Path.expand("../../../rebar3", __DIR__)
-File.cp!(rebar, Path.join(home, "rebar3"))
+# rebar = System.get_env("REBAR3") || Path.expand("../../../rebar3", __DIR__)
+# File.cp!(rebar, Path.join(home, "rebar3"))
## Copy fixtures to tmp
--- elixir-lang-1.3.3.orig/lib/mix/test/mix/rebar_test.exs
+++ elixir-lang-1.3.3/lib/mix/test/mix/rebar_test.exs
@@ -180,35 +180,35 @@ defmodule Mix.RebarTest do
end
end
- test "get and compile dependencies for rebar3" do
- Mix.Project.push(Rebar3AsDep)
+ # test "get and compile dependencies for rebar3" do
+ # Mix.Project.push(Rebar3AsDep)
- in_tmp "get and compile dependencies for rebar3", fn ->
- Mix.Tasks.Deps.Get.run []
- assert_received {:mix_shell, :info, ["* Getting git_rebar " <> _]}
-
- Mix.Tasks.Deps.Compile.run []
- assert_received {:mix_shell, :run, ["===> Compiling git_rebar\n"]}
- assert_received {:mix_shell, :run, ["===> Compiling rebar_dep\n"]}
- assert :git_rebar.any_function == :ok
- assert :rebar_dep.any_function == :ok
-
- load_paths = Mix.Dep.loaded([])
- |> Enum.map(&Mix.Dep.load_paths(&1))
- |> Enum.concat
-
- assert File.exists?("_build/dev/lib/rebar_dep/ebin/rebar_dep.beam")
- assert File.exists?("_build/dev/lib/git_rebar/ebin/git_rebar.beam")
-
- # Assert we have no .compile.lock as a .compile.lock
- # means we check for the Elixir version on every command.
- refute File.exists?("_build/dev/lib/rebar_dep/.compile.lock")
- refute File.exists?("_build/dev/lib/git_rebar/.compile.lock")
-
- assert Enum.any?(load_paths, &String.ends_with?(&1, "git_rebar/ebin"))
- assert Enum.any?(load_paths, &String.ends_with?(&1, "rebar_dep/ebin"))
- end
- end
+ # in_tmp "get and compile dependencies for rebar3", fn ->
+ # Mix.Tasks.Deps.Get.run []
+ # assert_received {:mix_shell, :info, ["* Getting git_rebar " <> _]}
+
+ # Mix.Tasks.Deps.Compile.run []
+ # assert_received {:mix_shell, :run, ["===> Compiling git_rebar\n"]}
+ # assert_received {:mix_shell, :run, ["===> Compiling rebar_dep\n"]}
+ # assert :git_rebar.any_function == :ok
+ # assert :rebar_dep.any_function == :ok
+
+ # load_paths = Mix.Dep.loaded([])
+ # |> Enum.map(&Mix.Dep.load_paths(&1))
+ # |> Enum.concat
+
+ # assert File.exists?("_build/dev/lib/rebar_dep/ebin/rebar_dep.beam")
+ # assert File.exists?("_build/dev/lib/git_rebar/ebin/git_rebar.beam")
+
+ # # Assert we have no .compile.lock as a .compile.lock
+ # # means we check for the Elixir version on every command.
+ # refute File.exists?("_build/dev/lib/rebar_dep/.compile.lock")
+ # refute File.exists?("_build/dev/lib/git_rebar/.compile.lock")
+
+ # assert Enum.any?(load_paths, &String.ends_with?(&1, "git_rebar/ebin"))
+ # assert Enum.any?(load_paths, &String.ends_with?(&1, "rebar_dep/ebin"))
+ # end
+ # end
test "get and compile dependencies for Rebar with Mix" do
Mix.Project.push(RebarAsDep)
|