I have the following in .travis.yml:
language: python
python:
- "3.4"
- "3.5"
- "3.5-dev" # 3.5 development branch
- "3.6-dev" # 3.6 development branch
- "nightly" # currently points to 3.7-dev
# command to run tests
script: pytest
The problem is that in python <= 3.5 it's py.test
instead of pytest
.
How do I tell travis to use py.test
for "3.4" and "3.5"?