From 6ff32347bf0c8cbde2188c55f406fb595c5e059a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 15 Oct 2019 14:32:43 -0400 Subject: [PATCH] Don't hardcode python version in path for Windows Also add Python 3.8 testing on Linux. --- .travis.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d170042..ec448e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,20 @@ language: python +dist: xenial +sudo: required matrix: include: - - os: windows + - name: "Windows, Python Latest" + os: windows language: sh - python: 3.7 + python: 3.x # only works on linux before_install: - - choco install python3 - - export PATH="/c/Python37:/c/Python37/Scripts:$PATH" + - choco install python3 --params "/InstallDir:C:\\Python" + - export PATH="/c/Python:/c/Python/Scripts:$PATH" - python -m pip install --upgrade pip wheel - - python: 3.7 - dist: xenial - sudo: required + - python: 3.7 # this works for Linux but is ignored on macOS or Windows + - python: 3.8 install: - cd $TRAVIS_BUILD_DIR