From e965f578c3a02e5293dfb330ee871739e9b00e93 Mon Sep 17 00:00:00 2001 From: ayan-b Date: Tue, 4 Aug 2020 17:03:14 +0530 Subject: [PATCH 1/2] .travis.yml: Test on multiple versions of python In windows, test on multiple versions. Closes https://github.com/the-virtual-brain/tvb-gdist/issues/59 --- .travis.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5c9a739..af90200 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,10 @@ script: - pip3 install pytest - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then pytest --cov=gdist; else pytest; fi +.before_script_windows: &before_script_windows + - python -m pip install --upgrade pip + - pip install --user wheel + jobs: include: - name: "Python 3.8 on Xenial Linux" @@ -22,9 +26,22 @@ jobs: language: shell before_install: - choco install python --version 3.8.0 - - python -m pip install --upgrade pip - - pip install --user wheel + before_script: *before_script_windows env: PATH=/c/Python38:/c/Python38/Scripts:$PATH + - name: "Python 3.7.0 on Windows" + os: windows + language: shell + before_install: + - choco install python --version 3.7.0 + before_script: *before_script_windows + env: PATH=/c/Python37:/c/Python37/Scripts:$PATH + - name: "Python 3.6.0 on Windows" + os: windows + language: shell + before_install: + - choco install python --version 3.6.0 + before_script: *before_script_windows + env: PATH=/c/Python36:/c/Python36/Scripts:$PATH - name: "Python 3.7.4 on macOS" os: osx osx_image: xcode11.2 From 0ed985e537363b97441ca5a99df4125841b0cbb5 Mon Sep 17 00:00:00 2001 From: ayan-b Date: Tue, 4 Aug 2020 17:23:31 +0530 Subject: [PATCH 2/2] Fix Python 3.6 --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index af90200..774e00c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,21 +26,21 @@ jobs: language: shell before_install: - choco install python --version 3.8.0 - before_script: *before_script_windows + - *before_script_windows env: PATH=/c/Python38:/c/Python38/Scripts:$PATH - name: "Python 3.7.0 on Windows" os: windows language: shell before_install: - choco install python --version 3.7.0 - before_script: *before_script_windows + - *before_script_windows env: PATH=/c/Python37:/c/Python37/Scripts:$PATH - name: "Python 3.6.0 on Windows" os: windows language: shell before_install: - choco install python --version 3.6.0 - before_script: *before_script_windows + - *before_script_windows env: PATH=/c/Python36:/c/Python36/Scripts:$PATH - name: "Python 3.7.4 on macOS" os: osx