Switch travis to pytest as well
authorIustin Pop <iustin@k1024.org>
Tue, 26 Nov 2019 22:57:49 +0000 (23:57 +0100)
committerIustin Pop <iustin@k1024.org>
Tue, 26 Nov 2019 22:58:22 +0000 (23:58 +0100)
.travis.yml

index c96e81d18ae726180233050aaf0888c8212ab56d..e36cffb2a96415d045cd22c033a158231ba5d29a 100644 (file)
@@ -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: