language: python
+# enable caching of installed packages.
+cache: pip
+
python:
- - "2.7"
- "3.4"
- "3.5"
- "3.6"
- "nightly"
# we don't need any python dependencies, but a ruby one for coverage:
-install: gem install coveralls-lcov
+install:
+ - gem install coveralls-lcov
+ - pip install pytest
+ - pip install codecov
# the test command:
script:
- - python ./setup.py test
+ - python setup.py build_ext -i
+ - python -m pytest tests
- make clean
- - CFLAGS="-coverage" python ./setup.py test
+ - CFLAGS="-coverage" python setup.py build_ext -i
+ - python -m pytest tests
# but we do need a system library:
addons:
after_success:
- lcov --capture --no-external --directory . --output-file coverage.info
- COVERALLS_PARALLEL=true coveralls-lcov coverage.info
- - pip install codecov
- codecov
notifications: