summaryrefslogtreecommitdiff
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-01 13:37:27 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-01 14:50:09 +0000
commit81e661f28b487bf194ff9dda9b36699f9e55915e (patch)
treea4d1d2865d9e41e66fabcd9a94a495881fc79746 /unix
parentb753009a380a103c024ffdd313f43d4fa44f0ef5 (diff)
travis: Add automated coverage testing using coveralls.
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 509c48ddf..43b5bf2dd 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -136,6 +136,8 @@ minimal:
coverage:
@echo Make sure to run make -B
$(MAKE) COPT="-O0" CFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' LDFLAGS_EXTRA='-fprofile-arcs -ftest-coverage' BUILD=build-coverage PROG=micropython_coverage
+
+coverage_test: coverage
$(eval DIRNAME=$(notdir $(CURDIR)))
cd ../tests && MICROPY_MICROPYTHON=../$(DIRNAME)/micropython_coverage ./run-tests
gcov -o build-coverage/py ../py/*.c