Skip to content
This repository
Newer
Older
100644 42 lines (28 sloc) 0.848 kb
d0360738 »
2012-02-04 BossDB is now its own project
1
2 ERL=erl
3 REBAR=./rebar
4 DB_CONFIG_DIR=priv/test_db_config
5
6 .PHONY: deps get-deps
7
8 all:
9 @$(REBAR) get-deps
10 @$(REBAR) compile
11
12 boss_db:
13 @$(REBAR) compile skip_deps=true
14
15 clean:
16 @$(REBAR) clean
17
18 get-deps:
19 @$(REBAR) get-deps
20
21 deps:
22 @$(REBAR) compile
23
24 test:
25 @$(REBAR) skip_deps=true eunit
26
27 test_db_mock:
28 $(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mock -noshell
29
30 test_db_mysql:
31 $(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mysql -noshell
32
33 test_db_pgsql:
34 $(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/pgsql -noshell
35
36 test_db_mongodb:
37 echo "db.boss_db_test_models.remove();"|mongo boss_test
38 $(ERL) -pa ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/mongodb -noshell
39
40 test_db_riak:
41 $(ERL) -pa ebin -pa deps/*/ebin -run boss_db_test start -config $(DB_CONFIG_DIR)/riak -noshell
Something went wrong with that request. Please try again.