Skip to content

Commit

Permalink
Merge pull request #94 from gigalixir/js/e2e-mix
Browse files Browse the repository at this point in the history
Fix e2e mix test
  • Loading branch information
gigatim committed Jan 18, 2022
2 parents 336f4c5 + fd867e7 commit 92d7f5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions e2e/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,18 @@ def test_mix():

# needed so this isolated filesystem can find .asdf plugins and installed versions
gigalixir.shell.cast("ln -s /home/js/.asdf .asdf")
gigalixir.shell.cast("asdf local elixir 1.10.3")
gigalixir.shell.cast("asdf local erlang 22.3")
gigalixir.shell.cast("asdf local elixir 1.12.3")
gigalixir.shell.cast("asdf local erlang 24.1.6")
gigalixir.shell.cast("mix local.hex --force")
gigalixir.shell.cast("mix archive.install --force hex phx_new")

# ensure these are up to date on your system under the .tool-versions above
# gigalixir.shell.cast("mix archive.install hex phx_new 1.5.8")
phx_new_process = subprocess.Popen(["mix", "phx.new", "gigalixir_scratch"], stdin=subprocess.PIPE)
phx_new_process.communicate(input=b'n\n')
with cd("gigalixir_scratch"):
with open("elixir_buildpack.config", "w") as text_file:
text_file.write("elixir_version=1.10.3\nerlang_version=22.3")
text_file.write("elixir_version=1.12.3\nerlang_version=24.1.6")
with open("phoenix_static_buildpack.config", "w") as text_file:
text_file.write("node_version=12.16.3")
gigalixir.shell.cast("git init")
Expand Down

0 comments on commit 92d7f5d

Please sign in to comment.