environment:
    matrix:
        - PYTHON: "C:\\Python27"
        - PYTHON: "C:\\Python27-x64"
        - PYTHON: "C:\\Python33"
        - PYTHON: "C:\\Python33-x64"
          DISTUTILS_USE_SDK: "1"
        - PYTHON: "C:\\Python34"
        - PYTHON: "C:\\Python34-x64"
          DISTUTILS_USE_SDK: "1"
        - PYTHON: "C:\\Python35"
        - PYTHON: "C:\\Python35-x64"
        - PYTHON: "C:\\Python36"
        - PYTHON: "C:\\Python36-x64"
          RUN_FLAKE: "1"

install:
    - "if \"%RUN_FLAKE%\"==\"1\" %PYTHON%\\python.exe -m pip install flake8"
    - "%PYTHON%\\python.exe -m pip install wheel"
    - "ci\\build.cmd %PYTHON%\\python.exe setup.py develop"

build: off

test_script:
    - "%PYTHON%\\python.exe ttasks.py test"
    - "if \"%RUN_FLAKE%\"==\"1\" %PYTHON%\\python.exe flake8 ."

after_test:
    - "%PYTHON%\\python.exe setup.py bdist_wheel"

artifacts:
    - path: dist\*

environment:
    matrix:
        - PYTHON: "C:\\Python27"
        - PYTHON: "C:\\Python27-x64"
        - PYTHON: "C:\\Python33"
        - PYTHON: "C:\\Python33-x64"
          DISTUTILS_USE_SDK: "1"
        - PYTHON: "C:\\Python34"
        - PYTHON: "C:\\Python34-x64"
          DISTUTILS_USE_SDK: "1"
        - PYTHON: "C:\\Python35"
        - PYTHON: "C:\\Python35-x64"
        - PYTHON: "C:\\Python36"
        - PYTHON: "C:\\Python36-x64"
          RUN_FLAKE: "1"

install:
    - "if \"%RUN_FLAKE%\"==\"1\" %PYTHON%\\python.exe -m pip install flake8"
    - "%PYTHON%\\python.exe -m pip install wheel"
    - "ci\\build.cmd %PYTHON%\\python.exe setup.py develop"

build: off

test_script:
    - "%PYTHON%\\python.exe ttasks.py test"
    - "if \"%RUN_FLAKE%\"==\"1\" %PYTHON%\\Scripts\\flake8.exe ."

after_test:
    - "%PYTHON%\\python.exe setup.py bdist_wheel"

artifacts:
    - path: dist\*

Add full path to flake8 runner in AppVeyor config
Add full path to flake8 runner in AppVeyor config
