From 194b65134b44321ddeebad03e680ab815dc5b273 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 27 Nov 2018 11:09:52 -0500 Subject: [PATCH 1/5] CI: Use Miniconda environments --- appveyor.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 93438cfc0f..05a2dbb261 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,18 +2,17 @@ # CI on Windows via appveyor environment: - matrix: - - PYTHON: C:\Python27 - - PYTHON: C:\Python27-x64 - - PYTHON: C:\Python34 - - PYTHON: C:\Python34-x64 - - PYTHON: C:\Python35 - - PYTHON: C:\Python35-x64 - - PYTHON: C:\Python36 - - PYTHON: C:\Python36-x64 - - PYTHON: C:\Python37 - - PYTHON: C:\Python37-x64 + - PYTHON: C:\Miniconda + - PYTHON: C:\Miniconda-x64 + - PYTHON: C:\Miniconda34 + - PYTHON: C:\Miniconda34-x64 + - PYTHON: C:\Miniconda35 + - PYTHON: C:\Miniconda35-x64 + - PYTHON: C:\Miniconda36 + - PYTHON: C:\Miniconda36-x64 + - PYTHON: C:\Miniconda37 + - PYTHON: C:\Miniconda37-x64 install: # Prepend newly installed Python to the PATH of this build (this cannot be From e96b571a0d35293209a3576ff614c41c5f4e0738 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 27 Nov 2018 11:10:32 -0500 Subject: [PATCH 2/5] CI: Add some debug statements to AppVeyor builds --- appveyor.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 05a2dbb261..5a1893f1d5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,4 +32,8 @@ test_script: # Change into an innocuous directory and find tests from installation - mkdir for_testing - cd for_testing + # Print Python, numpy versions + - python -c "import sys, numpy; print('Python', sys.version); print('numpy', numpy.__version__)" + # Show all environment variables to ease possible future debugging + - set - nosetests --with-doctest nibabel From 524c841f3f6eaaf389a019a99629f9530846cf0e Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 27 Nov 2018 11:10:48 -0500 Subject: [PATCH 3/5] DEBUG: Temporary C:\ listing --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index 5a1893f1d5..24ab23ef9e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,6 +15,7 @@ environment: - PYTHON: C:\Miniconda37-x64 install: + - ls C:\ # Prepend newly installed Python to the PATH of this build (this cannot be # done from inside the powershell script as it would require to restart # the parent CMD process). From 320516784eaa44b0d1ebe19ea3daa27ba03b4f4e Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 1 Jan 2019 15:48:25 -0500 Subject: [PATCH 4/5] CI: Use `python -m pip` to ensure correct installation target --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 24ab23ef9e..5d217ca54e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -23,8 +23,8 @@ install: # Install the dependencies of the project. - python -m pip install --upgrade pip setuptools wheel - - pip install numpy scipy matplotlib nose h5py mock pydicom - - pip install . + - python -m pip install numpy scipy matplotlib nose h5py mock pydicom + - python -m pip install . - SET NIBABEL_DATA_DIR=%CD%\nibabel-data build: false # Not a C# project, build stuff at the test step instead. From 3617a72fc90183683cb41eca19305b00c06446bf Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Tue, 1 Jan 2019 16:02:31 -0500 Subject: [PATCH 5/5] FIX: Ensure pip is installed in conda environment --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index 5d217ca54e..2a2b1a2f98 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,6 +22,7 @@ install: - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% # Install the dependencies of the project. + - conda install -y pip - python -m pip install --upgrade pip setuptools wheel - python -m pip install numpy scipy matplotlib nose h5py mock pydicom - python -m pip install .