Skip to content

Commit

Permalink
add code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeorgiev committed May 8, 2016
1 parent 920eb51 commit 06666ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: 9maTZamdcMQ33JqgPXV9BgmzyvTTpXyiC
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gcc-4.8 g++-4.8 -y ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 ; fi

- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install lcov ; fi

- ./prepare.sh

install:
- gem install coveralls-lcov

script:
./build.sh && ./self-build.sh

after_success:
- lcov --directory build --base-directory src --capture --no-external --output-file coverage.info # capture coverage info
- lcov --list coverage.info # debug before upload
- coveralls-lcov coverage.info # uploads to coveralls

cache:
directories:
- iwyu
Expand Down
2 changes: 1 addition & 1 deletion src/task/gtest/cxx/cxx_file_crc_task-utest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ TEST_F(CxxFileCrcTaskTest, SLOW_includeFromOneDirectory)
EXPECT_EQ(0xb7e440100a03d2c5, task->crc()) << std::hex << task->crc();
}

TEST_F(CxxFileCrcTaskTest, includeFromTwoDirectories)
TEST_F(CxxFileCrcTaskTest, VERYSLOW_includeFromTwoDirectories)
{
// This test makes sure that including from having more than one include directory
// with the same fs directory is working.
Expand Down

0 comments on commit 06666ee

Please sign in to comment.