# Sharpmake AppVeyor CI configuration

image: Visual Studio 2017

platform:
- Any CPU

configuration:
- Debug
- Release

before_build:
- cmd: bootstrap.bat

for:
  -
    matrix:
      only:
        - configuration: Debug
    build_script:
      - CompileSharpmake.bat Sharpmake.sln Debug "Any CPU"

  -
    matrix:
      only:
        - configuration: Release
    build_script:
      - CompileSharpmake.bat Sharpmake.sln Release "Any CPU"

after_test:
- cmd: python regression_test.py


# Sharpmake AppVeyor CI configuration

image:
- Visual Studio 2017
- macOS

skip_commits:
  files:
    - docs/*

platform:
- Any CPU

configuration:
- Debug
- Release

before_build:
- cmd: bootstrap.bat
- sh: ./bootstrap.sh

build_script:
  - cmd: CompileSharpmake.bat Sharpmake.sln "%CONFIGURATION%" "%PLATFORM%"
  - sh: msbuild -t:build -restore Sharpmake.sln /p:Configuration=\"$CONFIGURATION\" /p:Platform=\"$PLATFORM\" /nologo /v:m

test:
  assemblies:
    - 'Sharpmake.UnitTests\bin\*\Sharpmake.UnitTests.dll'

after_test:
- cmd: python regression_test.py

Add macOS to AppVeyor CI, and various improvements
Add macOS to AppVeyor CI, and various improvements

- Remove the matrix in favor of a single build_scripts section that use
  environment variables
- Skip the CI for commits where all files are in the docs directory
- Ease unit-tests discovery
