build: false
before_build:
  - choco install redis-64
  - redis-server --service-install
  - redis-server --service-start

environment:
  matrix:
    - PYTHON: "C:/Python27"
      COVERAGE_PROCESS_START: gluon/tests/coverage.ini
      PYTHON_ARCH: "64"

    - PYTHON: "C:/Python35"
      COVERAGE_PROCESS_START: gluon/tests/coverage.ini
      PYTHON_ARCH: "64"

    - PYTHON: "C:/Python36"
      COVERAGE_PROCESS_START: gluon/tests/coverage.ini
      PYTHON_ARCH: "64"

    - PYTHON: "C:/Python37"
      COVERAGE_PROCESS_START: gluon/tests/coverage.ini
      PYTHON_ARCH: "64"

clone_depth: 50

init:
  - "ECHO %PYTHON%"
  - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%

install:
  - python -m ensurepip
  - pip install codecov redis
  - git submodule update --init --recursive
  # Check that we have the expected version and architecture for Python
  - "python --version"
  - "python -c \"import struct; print(struct.calcsize('P') * 8)\""

test_script:
  - python web2py.py --run_system_tests --with_coverage

after_test:
  - coverage combine
  - codecov
