Browse Source

coveralls

Michele Caini 8 years ago
parent
commit
923f5233fa
2 changed files with 14 additions and 11 deletions
  1. 13 11
      .travis.yml
  2. 1 0
      README.md

+ 13 - 11
.travis.yml

@@ -2,13 +2,6 @@ language: cpp
 
 matrix:
   include:
-  - os: linux
-    compiler: gcc
-    addons:
-      apt:
-        sources: ['ubuntu-toolchain-r-test']
-        packages: ['g++-5']
-    env: COMPILER=g++-5
   - os: linux
     compiler: gcc
     addons:
@@ -23,14 +16,23 @@ matrix:
         sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8']
         packages: ['clang-3.8']
     env: COMPILER=clang++-3.8
-  - os: osx
-    osx_image: xcode7.3
-    compiler: clang
-    env: COMPILER=clang++
   - os: osx
     osx_image: xcode8
     compiler: clang
     env: COMPILER=clang++
+- os: linux
+    compiler: gcc
+    addons:
+      apt:
+        sources: ['ubuntu-toolchain-r-test']
+        packages: ['g++-6']
+    env:
+      - COMPILER=g++-6
+      - CXXFLAGS="-O0 --coverage -fno-inline -fno-inline-small-functions -fno-default-inline"
+    before_script:
+      - pip install --user cpp-coveralls
+    after_success:
+      - coveralls --gcov gcov-6 --gcov-options '\-lp' --root ${TRAVIS_BUILD_DIR} --build-root ${TRAVIS_BUILD_DIR}/build --extension cpp --extension hpp --exclude deps --include src
 
 notifications:
   email:

+ 1 - 0
README.md

@@ -2,6 +2,7 @@
 
 [![Build Status](https://travis-ci.org/skypjack/entt.svg?branch=master)](https://travis-ci.org/skypjack/uvw)
 [![Build status](https://ci.appveyor.com/api/projects/status/rvhaabjmghg715ck?svg=true)](https://ci.appveyor.com/project/skypjack/entt)
+[![Coverage Status](https://coveralls.io/repos/github/skypjack/entt/badge.svg?branch=master)](https://coveralls.io/github/skypjack/entt?branch=master)
 
 # Introduction