summaryrefslogtreecommitdiff
path: root/Makefile.win
diff options
context:
space:
mode:
authorILYA Khlopotov <iilyak@apache.org>2019-05-09 21:49:32 +0000
committerILYA Khlopotov <iilyak@apache.org>2019-07-29 11:24:37 +0000
commitd5849629a99603904ce94ce561916ebb66d04600 (patch)
tree984ff4894dfd67969ca002e39435f9988ed7cf5f /Makefile.win
parentf33378b38e45629c5934e739835571fbbd28bdda (diff)
downloadcouchdb-d5849629a99603904ce94ce561916ebb66d04600.tar.gz
Minimal ExUnit setup
Diffstat (limited to 'Makefile.win')
-rw-r--r--Makefile.win14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.win b/Makefile.win
index 99ec71278..2c4dc9821 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -144,6 +144,20 @@ eunit: couch
@$(REBAR) setup_eunit 2> nul
@$(REBAR) -r eunit $(EUNIT_OPTS)
+.PHONY: exunit
+# target: exunit - Run ExUnit tests
+exunit: export BUILDDIR = $(shell echo %cd%)
+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: couch elixir-check-formatted elixir-credo
+ @mix local.hex --force
+ @mix local.rebar rebar ${REBAR} --force
+ @mix deps.get
+ @$(REBAR) setup_eunit 2> nul
+ @mix test --trace $(EXUNIT_OPTS)
+
setup-eunit: export BUILDDIR = $(shell pwd)
setup-eunit: export ERL_AFLAGS = $(shell echo "-config rel/files/eunit.config")
setup-eunit: