language: c
compiler:
  - gcc
  - clang
before_install:
  - sudo apt-get install -y lcov
  - gem install coveralls-lcov
script:
    - autoreconf -iv
    - ./configure --enable-Werror --enable-code-coverage
    - make -j8
    - make check 2>&1 | tail -10000
    - make distcheck 2>&1 | tail -10000
after_success:
  - test "x$CC" = "xgcc" -o "x$CC" = "xclang" && make code-coverage-capture && coveralls-lcov asn1c-*-coverage.info
