version: '{branch}-{build}'
build: off
environment:
  matrix:
#    - TOXENV: py36,codecov
#      TOXPYTHON: C:\Python36\python.exe
#      PYTHON_HOME: C:\Python36
#      PYTHON_VERSION: '3.6'
#      PYTHON_ARCH: '32'
    - TOXENV: py36,codecov
      TOXPYTHON: C:\Python36-x64\python.exe
      PYTHON_HOME: C:\Python36-x64
      PYTHON_VERSION: '3.6'
      PYTHON_ARCH: '64'
#    - TOXENV: py37,codecov
#      TOXPYTHON: C:\Python37\python.exe
#      PYTHON_HOME: C:\Python37
#      PYTHON_VERSION: '3.7'
#      PYTHON_ARCH: '32'
    - TOXENV: py37,codecov
      TOXPYTHON: C:\Python37-x64\python.exe
      PYTHON_HOME: C:\Python37-x64
      PYTHON_VERSION: '3.7'
      PYTHON_ARCH: '64'
#    - TOXENV: py38,codecov
#      TOXPYTHON: C:\Python38\python.exe
#      PYTHON_HOME: C:\Python38
#      PYTHON_VERSION: '3.8'
#      PYTHON_ARCH: '32'
    - TOXENV: py38,codecov
      TOXPYTHON: C:\Python38-x64\python.exe
      PYTHON_HOME: C:\Python38-x64
      PYTHON_VERSION: '3.8'
      PYTHON_ARCH: '64'
init:
  - ps: echo $env:TOXENV
  - ps: ls C:\Python*
install:
  - '%PYTHON_HOME%\python -mpip install --progress-bar=off tox -rci/requirements.txt'
  - '%PYTHON_HOME%\Scripts\virtualenv --version'
  - '%PYTHON_HOME%\Scripts\easy_install --version'
  - '%PYTHON_HOME%\Scripts\pip --version'
  - '%PYTHON_HOME%\Scripts\tox --version'
test_script:
  - cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd %PYTHON_HOME%\Scripts\tox
on_failure:
  - ps: dir "env:"
  - ps: get-content .tox\*\log\*
### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
# on_finish:
#   - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
