version: 1.0.{build}
os: Visual Studio 2015
clone_depth: 2

assembly_info:
  patch: true
  file: AssemblyInfo.*
  assembly_version: "1.0.0.0"
  assembly_file_version: "{version}.0"
  assembly_informational_version: "{version}.0"

before_build:
  - nuget restore
  - ps: .\Build\Replace-FileString -Pattern '\$version\$' -Replacement "$env:appveyor_build_version" -Path src\**\*.nuspec -Overwrite

configuration: Release

build:
  project: Foundatio.sln
  verbosity: minimal
  publish_nuget: true
  publish_nuget_symbols: true

before_test:
  - cinst redis-64
  - redis-server --service-install
  - redis-server --service-start
  - ps: '& "${Env:ProgramFiles(x86)}\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start'
#  - ps: Build\enable-rdp.ps1

deploy:
  - provider: Environment
    name: NuGet

notifications:
  - provider: Slack
    auth_token:
      secure: PigIGGo7UUDwdb0KGM/s7OfpAng/OMJx7q33jKfzudFBiXi1EBEd0DRmkbCc7CiX
    channel: notifications
 
version: 2.0.{build}
os: Visual Studio 2015
clone_depth: 2

install:
  - ps: $env:GIT_HASH = $env:APPVEYOR_REPO_COMMIT.Substring(0, 10)

assembly_info:
  patch: true
  file: AssemblyInfo.*
  assembly_version: "2.0.0.0"
  assembly_file_version: "{version}.0"
  assembly_informational_version: "{version} $(GIT_HASH)"

before_build:
  - nuget restore
  - ps: .\Build\Replace-FileString -Pattern '\$version\$' -Replacement "$env:appveyor_build_version" -Path src\**\*.nuspec -Overwrite

configuration: Release

build:
  project: Foundatio.sln
  verbosity: minimal
  publish_nuget: true
  publish_nuget_symbols: true

before_test:
  - cinst redis-64
  - redis-server --service-install
  - redis-server --service-start
  - ps: '& "${Env:ProgramFiles(x86)}\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start'
#  - ps: Build\enable-rdp.ps1

deploy:
  - provider: Environment
    name: NuGet

notifications:
  - provider: Slack
    auth_token:
      secure: PigIGGo7UUDwdb0KGM/s7OfpAng/OMJx7q33jKfzudFBiXi1EBEd0DRmkbCc7CiX
    channel: notifications
 
Change major version since there are breaking changes. Better version numbers in assembly info.
Change major version since there are breaking changes. Better version numbers in assembly info.
