12345678910111213141516171819202122232425262728293031 |
- REBAR = rebar
- LASTVERSION = $(shell git rev-parse HEAD )
- all: compile
- compile:
- @$(REBAR) compile
- clean:
- @$(REBAR) clean
- # The INSERT is used to make sure the schema_version matches the tests
- # being run.
- create_testdbs:
- psql template1 < ./test_data/test_schema.sql
- psql epgsql_test_db1 -c "INSERT INTO schema_version (version) VALUES ('${LASTVERSION}');"
- test:
- @$(REBAR) eunit
- performance_test: compile
- erlc ./test/epgsql_perf_tests.erl
- erl -noshell -pa ./ebin -eval "eunit:test(epgsql_perf_tests, [verbose])" -run init stop
- dialyzer: build.plt compile
- dialyzer --plt $< ebin
- build.plt:
- dialyzer -q --build_plt --apps erts kernel stdlib ssl --output_plt $@
- .PHONY: all compile release clean create_testdbs performance_test test dialyzer
|