# Reference: http://www.appveyor.com/docs/appveyor-yml
# Notes:
#   - Indent each level of configuration with 2 spaces. Do not use tabs!

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

version: 1.0.{build}

branches:
  only:
    - master
  except:
    - gh-pages

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

matrix:
  fast_finish: true

os: Visual Studio 2017

platform:
  - x86

configuration:
  - Release

environment:
  MONO_INSTALLER: mono-5.0.1.1-gtksharp-2.12.44-win32-0.msi
  JAVA_HOME: C:\Program Files\Java\jdk1.8.0

#---------------------------------#
#    build scripts                #
#---------------------------------#

init:
  - git config --global core.autocrlf true

clone_script:
  - cmd: git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
  - cmd: cd %APPVEYOR_BUILD_FOLDER%
  - cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%
  - cmd: git submodule update --init --recursive

install:
  - cmd: appveyor DownloadFile https://download.mono-project.com/archive/5.0.1/windows-installer/%MONO_INSTALLER%
  - cmd: msiexec /i %MONO_INSTALLER% /qn /norestart

build_script:
  - ps: .\build.ps1 -t Generate-Android -v diagnostic

# Reference: http://www.appveyor.com/docs/appveyor-yml
# Notes:
#   - Indent each level of configuration with 2 spaces. Do not use tabs!

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

version: 1.0.{build}

branches:
  only:
    - master
  except:
    - gh-pages

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

matrix:
  fast_finish: true

os: Visual Studio 2017

platform:
  - x86

configuration:
  - Release

environment:
  MONO_INSTALLER: mono-5.0.1.1-gtksharp-2.12.44-win32-0.msi
  JAVA_HOME: C:\Program Files\Java\jdk1.8.0

#---------------------------------#
#    build scripts                #
#---------------------------------#

init:
  - git config --global core.autocrlf true

install:
  - cmd: appveyor DownloadFile https://download.mono-project.com/archive/5.0.1/windows-installer/%MONO_INSTALLER%
  - cmd: msiexec /i %MONO_INSTALLER% /qn /norestart

build_script:
  - cmd: git submodule update --init --recursive
  - ps: .\build.ps1 -t Generate-Android -v diagnostic

Use implicit Git clone and submodule init before building in AppVeyor.
[ci] Use implicit Git clone and submodule init before building in AppVeyor.
