Export coverage results to codecov as well
[pylibacl.git] / .travis.yml
1 language: python
2
3 python:
4   - "2.7"
5   - "3.4"
6   - "3.5"
7   - "3.6"
8   - "nightly"
9
10 matrix:
11   include:
12     - python: "3.7"
13       dist: xenial
14
15 # we don't need any python dependencies, but a ruby one for coverage:
16 install: gem install coveralls-lcov
17
18 # the test command:
19 script:
20   - python ./setup.py test
21   - make clean
22   - CFLAGS="-coverage" python ./setup.py test
23
24 # but we do need a system library:
25 addons:
26   apt:
27     packages:
28       - libacl1-dev
29       - lcov
30
31 after_success:
32   - lcov --capture --no-external --directory . --output-file coverage.info
33   - COVERALLS_PARALLEL=true coveralls-lcov coverage.info
34   - pip install codecov
35   - codecov
36
37 notifications:
38   webhooks: https://coveralls.io/webhook