Skip to content

CI: Move AppVeyor to Miniconda instead of native Python installations #696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@
# 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:
- 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).
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%

# Install the dependencies of the project.
- conda install -y pip
- 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.
Expand All @@ -33,4 +34,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