diff options
Diffstat (limited to 'Makefile.win')
-rw-r--r-- | Makefile.win | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/Makefile.win b/Makefile.win index 30ebe0ee3..b52920967 100644 --- a/Makefile.win +++ b/Makefile.win @@ -86,9 +86,6 @@ DIALYZE_OPTS=skip_deps=$(skip_deps) EXUNIT_OPTS=$(subst $(comma),$(space),$(tests)) -#ignore javascript tests -ignore_js_suites= - TEST_OPTS=-c startup_jitter=0 -c default_security=admin_local ################################################################################ @@ -134,8 +131,8 @@ fauxton: share\www .PHONY: check # target: check - Test everything check: all python-black + @$(MAKE) emilio @$(MAKE) eunit - @$(MAKE) javascript @$(MAKE) mango-test @$(MAKE) elixir @@ -162,6 +159,7 @@ exunit: export MIX_ENV=test exunit: export ERL_LIBS = $(shell echo %cd%)\src exunit: export ERL_AFLAGS = -config $(shell echo %cd%)/rel/files/eunit.config exunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell echo %cd%)/bin/couchjs $(shell echo %cd%)/share/server/main.js +exunit: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1 exunit: couch elixir-init setup-eunit elixir-check-formatted elixir-credo @mix test --cover --trace $(EXUNIT_OPTS) @@ -175,6 +173,9 @@ just-eunit: export ERL_AFLAGS = "-config $(shell echo %cd%)/rel/files/eunit.conf just-eunit: @$(REBAR) -r eunit $(EUNIT_OPTS) +emilio: + @bin\emilio -c emilio.config src\ | python.exe bin\warnings_in_scope -s 3 || exit 0 + .venv/bin/black: @python.exe -m venv .venv @.venv\Scripts\pip3.exe install black || copy /b .venv\Scripts\black.exe +,, @@ -186,7 +187,7 @@ python-black: .venv/bin/black @python.exe -c "import sys; exit(1 if sys.version_info >= (3,6) else 0)" || \ .venv\Scripts\black.exe --check \ --exclude="build/|buck-out/|dist/|_build/|\.git/|\.hg/|\.mypy_cache/|\.nox/|\.tox/|\.venv/|src/rebar/pr2relnotes.py|src/fauxton" \ - . dev\run test\javascript\run src\mango src\docs + build-aux dev\run src\mango\test src\docs\src\conf.py src\docs\ext . python-black-update: .venv/bin/black @python.exe -c "import sys; exit(1 if sys.version_info < (3,6) else 0)" || \ @@ -194,13 +195,15 @@ python-black-update: .venv/bin/black @python.exe -c "import sys; exit(1 if sys.version_info >= (3,6) else 0)" || \ .venv\Scripts\black.exe \ --exclude="build/|buck-out/|dist/|_build/|\.git/|\.hg/|\.mypy_cache/|\.nox/|\.tox/|\.venv/|src/rebar/pr2relnotes.py|src/fauxton" \ - . dev\run test\javascript\run src\mango src\docs + build-aux dev\run src\mango\test src\docs\src\conf.py src\docs\ext . .PHONY: elixir elixir: export MIX_ENV=integration elixir: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1 elixir: elixir-init elixir-check-formatted elixir-credo devclean - @dev\run $(TEST_OPTS) -a adm:pass -n 1 --enable-erlang-views --no-eval 'mix test --trace --exclude without_quorum_test --exclude with_quorum_test $(EXUNIT_OPTS)' + @dev\run $(TEST_OPTS) -a adm:pass -n 1 --enable-erlang-views \ + --locald-config test/elixir/test/config/test-config.ini \ + --no-eval 'mix test --trace --exclude without_quorum_test --exclude with_quorum_test $(EXUNIT_OPTS)' .PHONY: elixir-init elixir-init: MIX_ENV=test @@ -231,25 +234,6 @@ elixir-check-formatted: elixir-init elixir-credo: elixir-init @mix credo - -.PHONY: javascript -# target: javascript - Run JavaScript test suites or specific ones defined by suites option -javascript: export COUCHDB_TEST_ADMIN_PARTY_OVERRIDE=1 -javascript: devclean - -@mkdir share\www\script\test -ifeq ($(IN_RELEASE), true) - @copy test\javascript\tests\lorem*.txt share\www\script\test -else - -@mkdir src\fauxton\dist\release\test - @copy test\javascript\tests\lorem*.txt src\fauxton\dist\release\test -endif - @python dev\run -n 1 -q --with-admin-party-please \ - --enable-erlang-views \ - $(TEST_OPTS) \ - 'python test\javascript\run --suites "$(suites)" \ - --ignore "$(ignore_js_suites)"' - - .PHONY: check-qs # target: check-qs - Run query server tests (ruby and rspec required!) check-qs: @@ -356,7 +340,7 @@ install: release @echo . @echo To install CouchDB into your system, copy the rel\couchdb @echo to your desired installation location. For example: - @echo xcopy /E rel\couchdb C:\CouchDB\ + @echo xcopy /E rel\couchdb C:\CouchDB\ @echo . ################################################################################ @@ -405,6 +389,9 @@ devclean: -@rmdir /s/q dev\lib\node1\data -@rmdir /s/q dev\lib\node2\data -@rmdir /s/q dev\lib\node3\data + -@rmdir /s/q dev\lib\node1\etc + -@rmdir /s/q dev\lib\node2\etc + -@rmdir /s/q dev\lib\node3\etc ################################################################################ @@ -417,7 +404,7 @@ devclean: config.erl: @echo Apache CouchDB has not been configured. @echo Try "powershell -ExecutionPolicy Bypass .\configure.ps1 -?" for help. - @echo You probably want "powershell -ExecutionPolicy Bypass .\configure.ps1 -WithCurl". + @echo You probably want "powershell -ExecutionPolicy Bypass .\configure.ps1". @echo. @false |