build: add testing on windows in Travis

This commit is contained in:
Matthew Peveler
2019-10-09 14:57:38 -03:00
parent a8ea3f8724
commit 8a48f803d0
+19 -1
View File
@@ -6,8 +6,26 @@ python:
- 3.7
- 3.8-dev
matrix:
include:
- os: windows # Windows 10
language: shell # 'language: python' is an error on Travis CI Windows
python: 2.7
before_install:
- choco install python2
- python -m pip install --upgrade pip
env: PATH=/c/Python27:/c/Python27/Scripts:$PATH
- os: windows # Windows 10
language: shell # 'language: python' is an error on Travis CI Windows
python: 3.7
before_install:
- choco install python3
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
- pip install colorama flake8
- python -m pip install colorama flake8
- if [[ $(python -c "import sys; print(sys.version_info >= (3,5,))") == "True" ]]; then pip install flake8-bugbear; fi
script: