Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
56 lines (40 sloc) 1.38 kb
ERL=erl
REBAR=./rebar
GIT = git
REBAR_VER = 2.5.1
DB_CONFIG_DIR=priv/test_db_config
.PHONY: deps get-deps test
all:
@$(REBAR) get-deps
@$(REBAR) compile
boss_db:
@$(REBAR) compile skip_deps=true
clean:
@$(REBAR) clean
rebar_src:
@rm -rf $(PWD)/rebar_src
@$(GIT) clone git://github.com/rebar/rebar.git rebar_src
@$(GIT) -C rebar_src checkout tags/$(REBAR_VER)
@cd $(PWD)/rebar_src/; ./bootstrap
@cp $(PWD)/rebar_src/rebar $(PWD)
@rm -rf $(PWD)/rebar_src
get-deps:
@$(REBAR) get-deps
deps:
@$(REBAR) compile
test:
@$(REBAR) skip_deps=true eunit
compile_db_test:
@$(REBAR) clean skip_deps=true
@$(REBAR) --config "rebar.test.config" compile skip_deps=true
test_db_mock: compile_db_test
$(ERL) -pa ebin -pa deps/*/ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mock -noshell
test_db_mysql: compile_db_test
$(ERL) -pa ebin -pa deps/*/ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mysql -noshell
test_db_pgsql: compile_db_test
$(ERL) -pa ebin -pa deps/*/ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/pgsql -noshell
test_db_mongodb: compile_db_test
echo "db.boss_db_test_models.remove();"|mongo boss_test
$(ERL) -pa ebin -pa deps/*/ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mongodb -noshell
test_db_riak: compile_db_test
$(ERL) -pa ebin -pa deps/*/ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/riak -noshell
Jump to Line
Something went wrong with that request. Please try again.