From 9bc12e44d9740dce457ae3e393d13790b5871e49 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 26 Nov 2019 23:57:49 +0100 Subject: [PATCH] Switch travis to pytest as well --- .travis.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index c96e81d..e36cffb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: python +# enable caching of installed packages. +cache: pip + python: - - "2.7" - "3.4" - "3.5" - "3.6" @@ -10,13 +12,18 @@ python: - "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: @@ -28,7 +35,6 @@ addons: after_success: - lcov --capture --no-external --directory . --output-file coverage.info - COVERALLS_PARALLEL=true coveralls-lcov coverage.info - - pip install codecov - codecov notifications: -- 2.39.5