From 8a48f803d05439d2c8a0da635058267b642a0dbb Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Wed, 9 Oct 2019 14:57:38 -0300 Subject: [PATCH] build: add testing on windows in Travis --- .travis.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2890789..1ae986b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: