Don't hardcode python version in path for Windows

Also add Python 3.8 testing on Linux.
windows_support
Tyler Goodlet 2019-10-15 14:32:43 -04:00
parent 22b5c1c207
commit 6ff32347bf
1 changed files with 9 additions and 7 deletions

View File

@ -1,18 +1,20 @@
language: python language: python
dist: xenial
sudo: required
matrix: matrix:
include: include:
- os: windows - name: "Windows, Python Latest"
os: windows
language: sh language: sh
python: 3.7 python: 3.x # only works on linux
before_install: before_install:
- choco install python3 - choco install python3 --params "/InstallDir:C:\\Python"
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH" - export PATH="/c/Python:/c/Python/Scripts:$PATH"
- python -m pip install --upgrade pip wheel - python -m pip install --upgrade pip wheel
- python: 3.7 - python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial - python: 3.8
sudo: required
install: install:
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR