language: python

python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "3.7"
  - "3.8"
  - "nightly"

# we don't need any python dependencies, but a ruby one for coverage:
install: gem install coveralls-lcov

# the test command:
script:
  - python ./setup.py test
  - make clean
  - CFLAGS="-coverage" python ./setup.py test

# but we do need a system library:
addons:
  apt:
    packages:
      - libacl1-dev
      - lcov

after_success:
  - lcov --capture --no-external --directory . --output-file coverage.info
  - COVERALLS_PARALLEL=true coveralls-lcov coverage.info
  - pip install codecov
  - codecov

notifications:
  webhooks: https://coveralls.io/webhook