From f61eda63c399ccf0824d4c63c916ec14e722f6e2 Mon Sep 17 00:00:00 2001 From: CismonX Date: Mon, 23 Mar 2020 23:58:02 +0800 Subject: [PATCH] integrating Codecov --- .gitignore | 5 +++++ .travis.yml | 6 +++++- README.md | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2d441e4..9e9683a 100644 --- a/.gitignore +++ b/.gitignore @@ -36,5 +36,10 @@ u6a *.sum site.* +# gcov +*.gcov +*.gcda +*.gcno + # others *.log diff --git a/.travis.yml b/.travis.yml index b020993..a48b59b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,13 @@ branches: script: - autoreconf --install - - ./configure + - ./configure CFLAGS='-O0 -g -coverage' - make - make check + - gcov src/*.c - sudo make install - command -v u6a u6ac # - whatis u6a u6ac # broken on macOS... + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 7190212..4367fe9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # u6a [![Travis CI](https://travis-ci.com/CismonX/u6a.svg)](https://travis-ci.com/CismonX/u6a) +[![Codecov](https://codecov.io/gh/CismonX/u6a/branch/master/graphs/badge.svg)](https://codecov.io/gh/CismonX/u6a) [![LICENSE](https://img.shields.io/badge/licence-GPLv3-blue.svg)](LICENSE) Implementation of Unlambda, an esoteric programming language.