Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (28 sloc) 0.848 kB
ERL=erl
REBAR=./rebar
DB_CONFIG_DIR=priv/test_db_config
.PHONY: deps get-deps
all:
@$(REBAR) get-deps
@$(REBAR) compile
boss_db:
@$(REBAR) compile skip_deps=true
clean:
@$(REBAR) clean
get-deps:
@$(REBAR) get-deps
deps:
@$(REBAR) compile
test:
@$(REBAR) skip_deps=true eunit
test_db_mock:
$(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mock -noshell
test_db_mysql:
$(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mysql -noshell
test_db_pgsql:
$(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/pgsql -noshell
test_db_mongodb:
echo "db.boss_db_test_models.remove();"|mongo boss_test
$(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mongodb -noshell
test_db_riak:
$(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.