# shallow clone
clone_depth: 5

environment:
  matrix:
    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      cmake_generator: "Visual Studio 15 2017 Win64"

platform:
  - x64

configuration:
  - Release

install:
  - git submodule update --init --recursive
  - cd externals
  - git clone https://github.com/MerryMage/ext-boost boost
  - cd ..

before_build:
  - mkdir build
  - cd build
  - cmake .. -G "%cmake_generator%" -DBoost_INCLUDE_DIRS=%cd%/../externals/boost
  - cd ..

build:
  project: build/dynarmic.sln
  parallel: true

test_script:
  - cd build && ctest -VV -C Release && cd ..