[travis] Try to make coverage work with clang

This commit is contained in:
Behdad Esfahbod 2014-10-01 18:07:27 -04:00
parent 52784da17b
commit ef40ca8e5e
1 changed files with 6 additions and 5 deletions

View File

@ -4,8 +4,10 @@ compiler:
- gcc - gcc
env: env:
global: global:
- FEATURES="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2" - CPPFLAGS=""
- CPPFLAGS="-Werror -fprofile-arcs -ftest-coverage" LDFLAGS="-lgcov" - CFLAGS="-Werror --coverage"
- CXXFLAGS="-Werror --coverage"
- LDFLAGS="--coverage"
before_install: before_install:
- sudo apt-get install pkg-config ragel gtk-doc-tools # for autogen.sh - sudo apt-get install pkg-config ragel gtk-doc-tools # for autogen.sh
- sudo apt-get install libfreetype6-dev # for font functions - sudo apt-get install libfreetype6-dev # for font functions
@ -20,9 +22,8 @@ before_script:
- true - true
script: script:
- NOCONFIGURE=1 ./autogen.sh - NOCONFIGURE=1 ./autogen.sh
- ./configure $FEATURES CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS" - ./configure --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2
- make - make && make check
- make check
after_success: after_success:
- rm -f src/.libs/NONE.gcov # coveralls chokes on this - rm -f src/.libs/NONE.gcov # coveralls chokes on this
- touch src/NONE # see if this makes coveralls happy - touch src/NONE # see if this makes coveralls happy