mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 13:29:06 +08:00
Merge pull request #541 from dota17/coveralls_final
add coveralls auto tool to json-c
This commit is contained in:
28
.travis.yml
28
.travis.yml
@@ -78,6 +78,34 @@ matrix:
|
|||||||
osx_image: xcode10.1
|
osx_image: xcode10.1
|
||||||
env: XCODE="true" CHECK="true"
|
env: XCODE="true" CHECK="true"
|
||||||
|
|
||||||
|
# run coveralls
|
||||||
|
- os: linux
|
||||||
|
dist: xenial
|
||||||
|
compiler: gcc
|
||||||
|
env: CHECK="true"
|
||||||
|
install:
|
||||||
|
- sh autogen.sh
|
||||||
|
before_install:
|
||||||
|
- sudo pip install cpp-coveralls
|
||||||
|
- echo $CC
|
||||||
|
- echo $LANG
|
||||||
|
- echo $LC_ALL
|
||||||
|
- set -e
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
|
eval "${MATRIX_EVAL}";
|
||||||
|
if [ -n "$MATRIX_EVAL" ] && [ "$TRAVIS_COMPILER" != "clang" ]; then
|
||||||
|
sudo apt-get install -y $CC;
|
||||||
|
fi;
|
||||||
|
fi
|
||||||
|
before_script:
|
||||||
|
- export CFLAGS="-fprofile-arcs -ftest-coverage"
|
||||||
|
- ./configure
|
||||||
|
script:
|
||||||
|
- make
|
||||||
|
- make check
|
||||||
|
after_success:
|
||||||
|
- coveralls --exclude tests --exclude fuzz
|
||||||
|
|
||||||
# allow_failures:
|
# allow_failures:
|
||||||
# - os: osx
|
# - os: osx
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user