Skip to content

Commit

Permalink
Merge pull request #220 from seriyps/enable-test-coverage
Browse files Browse the repository at this point in the history
Add test coverage to CI; fail if coverage falls below the limit
  • Loading branch information
Arjan Scherpenisse authored Sep 30, 2020
2 parents 2cc4011 + cbdb1fe commit 44d3535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ matrix:
dist: trusty
script:
- make test
- make cover
#- make xref
- '[ "$TRAVIS_OTP_RELEASE" \< "21.0" ] || make docs' # disable edoc on older OTP
- make dialyze
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
MINIMAL_COVERAGE = 75

compile:
@./rebar3 compile

Expand All @@ -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
Expand Down

0 comments on commit 44d3535

Please sign in to comment.