diff options
author | Joan Touzet <wohali@users.noreply.github.com> | 2019-02-05 13:28:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-05 13:28:05 -0500 |
commit | d0ec5408a8d6ab33d925271f21b8dc45dfb5cdc1 (patch) | |
tree | 482702264899baa0b31d0e22ecd1d7bbdefda095 | |
parent | 20448c654a0f7c82e8defffe7a850d69378e2f33 (diff) | |
download | couchdb-d0ec5408a8d6ab33d925271f21b8dc45dfb5cdc1.tar.gz |
Force mix rebar/hex/deps get on make elixir (#1894)
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | Makefile.win | 12 |
2 files changed, 14 insertions, 6 deletions
@@ -208,9 +208,13 @@ python-black-update: .venv/bin/black . dev/run rel/overlay/bin/couchup test/javascript/run .PHONY: elixir -elixir: elixir-check-formatted elixir-credo devclean +elixir: elixir-init elixir-check-formatted elixir-credo devclean @dev/run -a adm:pass --no-eval 'test/elixir/run --exclude without_quorum_test --exclude with_quorum_test $(EXUNIT_OPTS)' +.PHONY: elixir-init +elixir-init: + @cd test/elixir && mix local.rebar --force && mix local.hex --force && mix deps.get + .PHONY: elixir-cluster-without-quorum elixir-cluster-without-quorum: elixir-check-formatted elixir-credo devclean @dev/run -n 3 -q -a adm:pass \ @@ -231,7 +235,7 @@ elixir-check-formatted: # We use it in our tests .PHONY: elixir-credo elixir-credo: - @cd test/elixir/ && mix deps.get && mix credo + @cd test/elixir/ && mix credo .PHONY: javascript # target: javascript - Run JavaScript test suites or specific ones defined by suites option diff --git a/Makefile.win b/Makefile.win index fd1ab9b86..7b7f805e7 100644 --- a/Makefile.win +++ b/Makefile.win @@ -172,20 +172,24 @@ python-black-update: .venv/bin/black . dev\run rel\overlay\bin\couchup test\javascript\run .PHONY: elixir -elixir: elixir-check-formatted elixir-credo devclean +elixir: elixir-init elixir-check-formatted elixir-credo devclean @dev\run -a adm:pass --no-eval 'test\elixir\run.cmd --exclude without_quorum_test --exclude with_quorum_test $(EXUNIT_OPTS)' +.PHONY: elixir-init +elixir-init: + @cd test/elixir && mix local.rebar --force && mix local.hex --force && mix deps.get + .PHONY: elixir-cluster-without-quorum elixir-cluster-without-quorum: elixir-check-formatted elixir-credo devclean @dev\run -n 3 -q -a adm:pass \ --degrade-cluster 2 \ - --no-eval 'test\elixir\run --only without_quorum_test $(EXUNIT_OPTS)' + --no-eval 'test\elixir\run.cmd --only without_quorum_test $(EXUNIT_OPTS)' .PHONY: elixir-cluster-with-quorum elixir-cluster-with-quorum: elixir-check-formatted elixir-credo devclean @dev\run -n 3 -q -a adm:pass \ --degrade-cluster 1 \ - --no-eval 'test\elixir\run --only with_quorum_test $(EXUNIT_OPTS)' + --no-eval 'test\elixir\run.cmd --only with_quorum_test $(EXUNIT_OPTS)' .PHONY: elixir-check-formatted elixir-check-formatted: @@ -195,7 +199,7 @@ elixir-check-formatted: # We use it in our tests .PHONY: elixir-credo elixir-credo: - @cd test/elixir/ && mix deps.get && mix credo + @cd test/elixir/ && mix credo .PHONY: test-cluster-with-quorum test-cluster-with-quorum: devclean |