diff --git a/.travis.yml b/.travis.yml index ccdfe015..366ddc85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,5 +12,6 @@ matrix: dist: trusty script: - make test + - make cover #- make xref - make dialyze diff --git a/Makefile b/Makefile index 42086a05..49577950 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +MINIMAL_COVERAGE = 75 + compile: @./rebar3 compile @@ -6,7 +8,10 @@ clean: test: ERL_AFLAGS="-s ssl" - ./rebar3 eunit + ./rebar3 eunit -c + +cover: + ./rebar3 cover --verbose --min_coverage $(MINIMAL_COVERAGE) dialyze: ./rebar3 as dialyzer dialyzer