branches:
  only:
  - master

version: 1.2.0.{build}'

platform:
  - x64

environment:
  matrix:
    - PYTHON: "C:\\Miniconda36-x64\\Scripts\\activate.bat"
      PYTHON_VERSION: 3.6
    - PYTHON: "C:\\Miniconda37-x64\\Scripts\\activate.bat"
      PYTHON_VERSION: 3.7

configuration:
  - Release

install:
  - mkdir C:\Users\appveyor\.conda
  - cmd: call %PYTHON%
  - cmd: conda config --set always_yes yes --set changeps1 no
  - cmd: conda update -q conda
  - cmd: conda config --add channels conda-forge
  - cmd: conda create -q -n test python=%PYTHON_VERSION%
  - cmd: conda env update -n test -f environment.yml
  - cmd: activate test

build_script:
  - cmd: python setup.py install

test_script:
  - cmd: pytest plio/

    #on_success:
    #- cmd: conda deactivate
    #- cmd: conda install conda-build anaconda-client
    #- cmd: conda config --set anaconda_upload yes
    # - cmd: conda build --token %CONDA_UPLOAD_TOKEN% .
