Code

.travis.yml: Collect and upload coverage information to coveralls.io.
[sysdb.git] / .travis.yml
index b227ad6d084fac1ae1b02fbef45e2a68ea873ead..6aa12003edf48efad351e06c04cd1261531b0700 100644 (file)
@@ -7,9 +7,12 @@ before_install:
 install:
   - sudo apt-get install -qq check flex bison libtool
   - sudo apt-get install -qq libdbi-dev libedit-dev libltdl-dev
 install:
   - sudo apt-get install -qq check flex bison libtool
   - sudo apt-get install -qq libdbi-dev libedit-dev libltdl-dev
+  - sudo pip install cpp-coveralls --use-mirrors
 before_script:
   - ./autogen.sh
 before_script:
   - ./autogen.sh
-script: ./configure CFLAGS="-Wno-sign-conversion" && make && make test
+script: ./configure CFLAGS="-O0 --coverage --no-inline -Wno-sign-conversion" && make && make test
+after_success:
+  - coveralls --exclude t
 branches:
   only:
     - master
 branches:
   only:
     - master