Skip to content

Commit

Permalink
Merge pull request #465 from universal-ctags/coverall
Browse files Browse the repository at this point in the history
Enable coveralls
  • Loading branch information
masatake committed Jul 31, 2015
2 parents 0d82bfe + ea7ccd7 commit 40f7a15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ env:
# Only with gcc get the mingw-w64 cross compilers
before_install:
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then sudo apt-get update -qq; sudo apt-get install -y binutils-mingw-w64-i686 gcc-mingw-w64-i686; fi

- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then sudo apt-get install -qq lcov rubygems; gem install lcoveralls; fi
# Build and run tests. Only with gcc cross compile
script:
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make -f mk_mingw.mak CC=i686-w64-mingw32-gcc; fi
- autoreconf -f -i -v
- ./configure
- make -j2
- ./configure --enable-iconv
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make clean; fi
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make -j2 COVERAGE=1; else make -j2; fi
- make check TRAVIS=1
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then make distclean; make -f mk_mingw.mak CC=i686-w64-mingw32-gcc; fi
after_success:
- if [ $CC = 'gcc' ] && [ $TRAVIS_OS_NAME = 'linux' ]; then lcov -c -b . -d . -o coverage.info && lcoveralls --root . --retry-count 5 coverage.info; fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.org/universal-ctags/ctags.svg?branch=master)](https://travis-ci.org/universal-ctags/ctags)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/4355/badge.svg)](https://scan.coverity.com/projects/4355)
[![Coverage Status](https://coveralls.io/repos/universal-ctags/ctags/badge.svg?branch=master&service=github)](https://coveralls.io/github/universal-ctags/ctags?branch=master)

universal-ctags has the objective of continuing the development from
what existed in the Sourceforge area. Github exuberant-ctags
Expand Down

0 comments on commit 40f7a15

Please sign in to comment.