# Notes:
#   - Minimal appveyor.yml file is an empty file. All sections are optional.
#   - Indent each level of configuration with 2 spaces. Do not use tabs!
#   - All section names are case-sensitive.
#   - Section names should be unique on each level.

#---------------------------------#
#      general configuration      #
#---------------------------------#

# version format
version: 0.10.{build}

# branches to build
branches:
  # blacklist
  except:
    - gh-pages

# Do not build on tags (GitHub only)
skip_tags: true

#---------------------------------#
#    environment configuration    #
#---------------------------------#

image: Visual Studio 2022

# clone directory
clone_folder: C:\Npcap
clone_depth: 10

# environment variables
environment:
  SignTool: C:\Program Files (x86)\Windows Kits\10\bin\x64

# scripts that run after cloning repository
install:
  # clone the submodules
  - cmd: git submodule update --init --recursive
  # install Win-Flex-Bison
  - cmd: cinst winflexbison -y

#---------------------------------#
#       build configuration       #
#---------------------------------#

# scripts to run before build
# before_build:

# scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
# before_package:

# scripts to run after build
# after_build:

# to run your custom scripts instead of automatic MSBuild
build_script:
  - cmd: cd installer
  - cmd: echo .| Build.bat

# to disable automatic builds
# build: off
