version: 0.14.{build}
clone_folder: c:\gopath\src\github.com\mackerelio\mackerel-agent
environment:
  GOPATH: c:\gopath
install:
  - cmd: choco install ruby
  - cmd: set PATH=c:\tools\ruby215\bin;%PATH%
build_script:
- call wix\build.bat
test_script:
- FOR /F "usebackq" %%w IN (`git rev-parse --show-cdup`) DO SET CDUP=%%w
- cd %CDUP%
- go get -d -v -t ./...
- go vet ./...
- go test -short ./...
notifications:
  - provider: Slack
    auth_token:
      secure: g8kxcFTMRU9m64NhA1rzBZaPY72haF7+3t3T0NL/Mug00izQ4B1FjhoHbTQPUVGT
    channel: mackerel
deploy:
  release: $(appveyor_repo_tag_name)-msi
  provider: GitHub
  auth_token:
    secure: 2HLHAjVNhpeABGoWAe6iqAtEeq4fjawUVsGq4aBF4yOQsF67IOqBOh8NYHqq25yM
  artifact: mackerel-agent-msi
  draft: false
  prerelease: true
  appveyor_repo_tag: true
  on:
    branch: master
    appveyor_repo_tag: true
artifacts:
  - path: build\mackerel-agent.msi
    name: mackerel-agent-msi

version: 0.14.{build}
clone_folder: c:\gopath\src\github.com\mackerelio\mackerel-agent
environment:
  GOPATH: c:\gopath
install:
  - cmd: choco install ruby
  - cmd: set PATH=c:\tools\ruby215\bin;%PATH%
build_script:
- call wix\build.bat
test_script:
- FOR /F "usebackq" %%w IN (`git rev-parse --show-cdup`) DO SET CDUP=%%w
- cd %CDUP%
- go get -d -v -t ./...
- go vet ./...
- go test -short ./...
notifications:
  - provider: Slack
    auth_token:
      secure: g8kxcFTMRU9m64NhA1rzBZaPY72haF7+3t3T0NL/Mug00izQ4B1FjhoHbTQPUVGT
    channel: mackerel
deploy:
  release: $(appveyor_repo_tag_name)-msi
  provider: GitHub
  auth_token:
    secure: 2HLHAjVNhpeABGoWAe6iqAtEeq4fjawUVsGq4aBF4yOQsF67IOqBOh8NYHqq25yM
  artifact: mackerel-agent-msi
  draft: false
  prerelease: true
  appveyor_repo_tag: true
  on:
    appveyor_repo_tag: true
artifacts:
  - path: build\mackerel-agent.msi
    name: mackerel-agent-msi

Create package from not only master branch
Create package from not only master branch
