version: '{branch}.{build}'
clone_folder: c:\gopath\src\github.com\lxc\lxd
environment:
  GOPATH: c:\gopath

install:
- cmd: |-
    echo %PATH%
    echo %GOPATH%
    set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
    go version
    go env

build_script:
- cmd: |-
    go get -t -v -d ./...
    go install -v ./lxc

test_script:
- cmd: |-
    go test -v ./
    go test -v ./shared
    go test -v ./lxc
    lxc version

after_test:
- cmd: |-
    copy c:\gopath\bin\lxc.exe .

artifacts:
- path: lxc.exe

version: '{branch}.{build}'
clone_folder: c:\gopath\src\github.com\lxc\lxd
environment:
  GOPATH: c:\gopath

install:
- cmd: |-
    echo %PATH%
    echo %GOPATH%
    set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
    go version
    go env

build_script:
- cmd: |-
    go get -t -v -d ./...
    go install -v ./lxc

test_script:
- cmd: |-
    go test -v ./
    go test -v ./shared
    go test -v ./lxc

after_test:
  # powershell capture command output into environment variable
  - ps: $env:VERSION = lxc version
  - echo %VERSION%
  # pack lxc as an artifact for upload
  - 7z a lxc-%VERSION%-windows-amd64.zip c:\gopath\bin\lxc.exe

artifacts:
- path: "*.zip"

Create archive with platform specifier in its name
Create archive with platform specifier in its name

Signed-off-by: anatoly techtonik <657222fa4408d5fb9c49497617f580f8c5974a3b@gmail.com>
