Skip to content

Commit a5ec269

Browse files
committed
Setup coverage with cpp-coveralls #2
1 parent b938f17 commit a5ec269

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ pipe-child.lsp
2929
# guiserver
3030
*.class
3131

32+
# coveralls (gcov)
33+
*.gcov
34+
*.gcda
35+
*.gcno
36+
3237
# eclipse
3338
.settings
3439

.travis.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ matrix:
3636
script:
3737
- make -f makefile_mingw_utf8 CC=${CC} STRIP=${STRIP}
3838

39+
before_install:
40+
- source ./ci/coveralls/before_install_${TRAVIS_OS_NAME}.sh
41+
3942
script:
40-
- make CC="$CC"
43+
- make CC="$CC --coverage"
4144
- file ./newlisp && ./newlisp -v
4245
- make testall
46+
47+
after_success:
48+
- coveralls --exclude util

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ newLISP mirror
22
==============
33

44
[![Build Status](https://travis-ci.org/kosh04/newlisp.svg?branch=develop)](https://travis-ci.org/kosh04/newlisp)
5+
[![Coverage Status](https://coveralls.io/repos/kosh04/newlisp/badge.svg?branch=feature%2Fcoveralls&service=github)](https://coveralls.io/github/kosh04/newlisp?branch=feature%2Fcoveralls)
56
[![Build status](https://ci.appveyor.com/api/projects/status/qg6ijtx867q5fxnl/branch/develop?svg=true)](https://ci.appveyor.com/project/kosh04/newlisp/branch/develop)
67
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/kosh04/newlisp)
78

ci/coveralls/before_install_linux.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
set -e
3+
4+
pip install --user cpp-coveralls

ci/coveralls/before_install_osx.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# brew update
5+
# brew install pyenv
6+
eval "$(pyenv init -)"
7+
pyenv install 2.7.6
8+
pyenv global 2.7.6
9+
pyenv rehash
10+
pip install cpp-coveralls
11+
pyenv rehash

0 commit comments

Comments
 (0)