summaryrefslogtreecommitdiff
path: root/Makefile.win
diff options
context:
space:
mode:
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: