]> git.k1024.org Git - pyxattr.git/blob - .travis.yml
Makefile: add a simpler test target
[pyxattr.git] / .travis.yml
1 language: python
2
3 # enable caching of installed packages.
4 cache: pip
5
6 # let's test as many versions as we can!
7 python:
8     - "3.4"
9     - "3.5"
10     - "3.6"
11     - "3.7"
12     - "3.8"
13     - "nightly"
14
15 # enable OSX support, with only system Python, and newer Python on Linux:
16 matrix:
17   include:
18     - os: osx
19       # specify a reasonably newer xcode so that brew works
20       osx_image: xcode11
21       language: generic
22       python:
23
24 # install coverage helper:
25 install:
26   - gem install coveralls-lcov
27   - pip install pytest
28
29 # the test command:
30 script:
31   - python ./setup.py build_ext -i
32   - python -m pytest test
33   - make clean
34   - CFLAGS="-coverage" python ./setup.py build_ext -i
35   - python -m pytest test
36
37 # install lcov, platform-specific but clean:
38 addons:
39   apt:
40     packages:
41       - lcov
42   homebrew:
43     packages:
44       - lcov
45
46 after_success:
47   - lcov --capture --no-external --directory . --output-file coverage.info
48   - COVERALLS_PARALLEL=true coveralls-lcov coverage.info
49   - pip install codecov
50   - codecov
51
52 notifications:
53   webhooks: https://coveralls.io/webhook