From 879e6e1fe83df1df91ec87b6b7469eefcbf66f20 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 25 Sep 2017 10:14:26 +0200 Subject: Add support for coveralls --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 07cbc81..4eba7a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: php php: - '7.0' - '7.1' - - '7.2' - nightly @@ -13,6 +12,9 @@ addons: - gcc - lcov +before_install: + - pip install --user cpp-coveralls + script: - cd src - phpize @@ -22,7 +24,9 @@ script: after_success: - git clone https://github.com/linux-test-project/lcov.git --depth 1 + - rm -rf ./lcov/examples/ ./lcov/test/ - ./lcov/bin/lcov -c -o ./COV.info --rc lcov_branch_coverage=1 --base-directory . --directory . - ./lcov/bin/lcov --remove ./COV.info '/usr/*' --remove ./COV.info '*tweetnacl.c' -o ./COV.info --rc lcov_branch_coverage=1 - ./lcov/bin/genhtml -o ./COV.html ./COV.info --branch-coverage - bash <(curl -s https://codecov.io/bash) + - coveralls --exclude 'tweetnacl.c' -- cgit v1.3