version: 0.8.1.{build}
environment:
  TOKEN:
    secure: KE3DuBSMhbBxLurkOXLrmAFbF+zptuCJztv1LDq1DfU65A1NSoYTI9JpYE63h/66

build_script:
  - ps: cpack

test_script:
  - ps: .\test.ps1 -cpu x64
  - ps: .\test.ps1 -cpu x86

deploy_script:
  - ps: >-
      Write-Host $env:APPVEYOR_REPO_TAG ;
      if($env:APPVEYOR_REPO_BRANCH -eq 'master' -And $env:APPVEYOR_REPO_TAG -eq 'true') {
        $version = $env:APPVEYOR_BUILD_VERSION -replace('\.[^.\\/]+$') ;
        choco apiKey -k $env:TOKEN -source https://chocolatey.org/ ;
        choco push docker-machine.$version.nupkg
      }

artifacts:
  - path: '**\*.nupkg'
    name: Package

version: 0.8.1.{build}
environment:
  TOKEN:
    secure: KE3DuBSMhbBxLurkOXLrmAFbF+zptuCJztv1LDq1DfU65A1NSoYTI9JpYE63h/66

build_script:
  - ps: choco pack

test_script:
  - ps: .\test.ps1 -cpu x64
  - ps: .\test.ps1 -cpu x86

deploy_script:
  - ps: >-
      Write-Host $env:APPVEYOR_REPO_TAG ;
      if($env:APPVEYOR_REPO_BRANCH -eq 'master' -And $env:APPVEYOR_REPO_TAG -eq 'true') {
        $version = $env:APPVEYOR_BUILD_VERSION -replace('\.[^.\\/]+$') ;
        choco apiKey -k $env:TOKEN -source https://chocolatey.org/ ;
        choco push docker-machine.$version.nupkg
      }

artifacts:
  - path: '**\*.nupkg'
    name: Package

Use choco pack due to conflict with cpack
Use choco pack due to conflict with cpack

Signed-off-by: Stefan Scherer <2fe843265e65a9540d5df64f4bed2ee6b7ca283e@icloud.com>
