environment:
  global:
    # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
    # /E:ON and /V:ON options are not enabled in the batch script intepreter
    # See: http://stackoverflow.com/a/13751649/163740
    CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\.continuous-integration\\appveyor\\run_with_env.cmd"
#    QUEST_CACHE_DIR: quest_test_cache
  matrix:
    - PYTHON_VERSION: 3.5
      PYTHON_BUILD: 35
      MINICONDA: C:\Miniconda3-x64
    - PYTHON_VERSION: 3.6
      MINICONDA: C:\Miniconda3-x64
      PYTHON_BUILD: 36
    - PYTHON_VERSION: 3.7
      MINICONDA: C:\Miniconda3-x64
      PYTHON_BUILD: 37

init:
  - "ECHO %PYTHON_VERSION% %MINICONDA%"

cache:
  - "%ULMO_CACHE_DIR%"

build: false

install:
  # Install miniconda using a powershell script.
  - "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
  - "conda config --set always_yes yes --set changeps1 no"
#  - "conda update -q conda"
  - "conda info -a"
  - ps: "(Get-Content conda_environment.yml).replace('python=3', \"python=$env:PYTHON_VERSION\") | Set-Content conda_environment.yml"
  - "conda env create -q -n test-environment -f conda_environment.yml"
  - "activate test-environment"
  - "python setup.py install"
  - "conda list"
  
test_script:
  - "%CMD_IN_ENV% pytest -vv -k \"not lcra and not hdf5 and not pytables\""
