# AppVeyor configuration for ijson
#
# ICRAR - International Centre for Radio Astronomy Research
# (c) UWA - The University of Western Australia, 2020
# Copyright by UWA (in the framework of the ICRAR)
# All rights reserved

image: Visual Studio 2019

environment:

  matrix:

    # For Python versions available on Appveyor, see
    # http://www.appveyor.com/docs/installed-software#python
    - PYTHON: "C:\\Python35-x64"
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
    - PYTHON: "C:\\Python36-x64"
    - PYTHON: "C:\\Python37-x64"
    - PYTHON: "C:\\Python38-x64"
    - PYTHON: "C:\\Python39-x64"
    - PYTHON: "C:\\Python310-x64"
    - PYTHON: "C:\\Python311-x64"

install:
  - "%PYTHON%\\python.exe -m pip install pytest"
  - cmd: git submodule update --init --recursive

build: off

# Build, then run tests/benchmark with hw/sw implementations
test_script:
  - "set IJSON_EMBED_YAJL=1"
  - "%PYTHON%\\python.exe setup.py develop"
  - "%PYTHON%\\python.exe -mpytest -v"

artifacts:
  - path: dist\*
