I need to run tests against all (supported) versions of Python, i.e. 2.7, 3.4 through 3.7, PyPy and PyPy3. I do a matrix build (python: …, os: …) and I’d need at least pip installed, so that I can install ideally tox-travis and run tox.
pyclean PR #6 shows my attempt. The resulting stages look good, now only Python support is missing!
1 Like
@bittner Try this.
I followed the below method to install Python on Windows using pyenv-win (pyenv for Windows).
https://github.com/network-tools/shconfparser/blob/master/.travis.yml
language: python
sudo: false
matrix:
include:
- os: windows
language: sh
before_install:
- git clone https://github.com/pyenv-win/pyenv-win.git $HOME/.pyenv
- export PATH="$HOME/.pyenv/pyenv-win/bin:$HOME/.pyenv/pyenv-win/shims:$PATH"
- pyenv install -q 3.7.1
- pyenv rehash
- pyenv local 3.7.1
- python --version
- pip install -r requirements_dev.txt
- os: linux
python: 2.7
before_install:
- pip install -r requirements_dev27.txt
- os: linux
python: 3.7
before_install:
- pip install -r requirements_dev.txt
script:
- "PYTHONPATH=. python -m pytest -v -s --cov=shconfparser tests"
after_success:
- coveralls
Hope this helps 