language: c

branches:
  except:
    - ruby-2.x

compiler:
  - gcc
  - clang

env:
  - CFLAGS=--coverage CONFOPT=

sudo: false

addons:
  apt:
    packages:
      - lcov
      #- python3

before_install:
  - gem install lcoveralls

before_script:
  - ./configure $CONFOPT && make

script:
  - make test

after_success:
  - lcov -c -d .libs -o coverage.info
  - lcoveralls --retry-count 5 coverage.info
