# YAML definition for travis-ci.com continuous integration.
# See https://docs.travis-ci.com/user/languages/c

language: c

compiler:
    - gcc

before_script:
    - mkdir build
    - cd build
    - CFLAGS='-g -O0 --coverage' cmake -G 'Unix Makefiles' ..

script:
    - make

after_success:
    - sudo apt-get install python3
    - pip install --user cpp-coveralls
    - ../scripts/run-tests.sh
    - ~/.local/bin/coveralls -r .. --gcov-options '\-lp' -i md4c -i md2html
