compatible with llvm-cov

This commit is contained in:
CismonX 2020-03-24 01:03:34 +08:00
parent f61eda63c3
commit 000713149e
No known key found for this signature in database
GPG Key ID: 315D6652268C5007
1 changed files with 5 additions and 1 deletions

View File

@ -23,12 +23,16 @@ branches:
only: only:
- master - master
before_script:
- export GCOV_BIN=`test $TRAVIS_COMPILER = clang && echo 'llvm-cov gcov' || echo gcov`
- test $TRAVIS_OS_NAME = osx && export PATH=$PATH:/Library/Developer/CommandLineTools/usr/bin || true
script: script:
- autoreconf --install - autoreconf --install
- ./configure CFLAGS='-O0 -g -coverage' - ./configure CFLAGS='-O0 -g -coverage'
- make - make
- make check - make check
- gcov src/*.c - $GCOV_BIN src/*.c
- sudo make install - sudo make install
- command -v u6a u6ac - command -v u6a u6ac
# - whatis u6a u6ac # broken on macOS... # - whatis u6a u6ac # broken on macOS...