version: 1.0.0.{build}-beta

environment:
  TIMEOUT: "5m"
  CGO_ENABLED: 0
  GOPATH: C:\gopath

platform:
  - x86
  - x64

clone_folder: C:\gopath\src\github.com\thriqon\involucro

install:
  - go get -u github.com/jstemmer/go-junit-report
  - go get -u github.com/josephspurrier/goversioninfo/cmd/goversioninfo
  - ps: C:\gopath\bin\goversioninfo "-product-version=$(git describe)"

build_script:
  - go get ./...
  - ps: |
        go build -o involucro.exe -ldflags "-s -w -X github.com/thriqon/involucro/app.version=$(git describe)" ./cmd/involucro ;
        ./involucro.exe --version

test_script:
  - go test ./runtime/... -v | %GOPATH%\bin\go-junit-report > unit.xml
  - ps: $wc = New-Object 'System.Net.WebClient'; $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unit.xml))


version: 1.0.0.{build}-beta

environment:
  TIMEOUT: "5m"
  CGO_ENABLED: 0
  GOPATH: C:\gopath

platform:
  - x86
  - x64

clone_folder: C:\gopath\src\github.com\thriqon\involucro

install:
  - go get -u github.com/jstemmer/go-junit-report
  - go get -u github.com/josephspurrier/goversioninfo/cmd/goversioninfo
  - ps: C:\gopath\bin\goversioninfo "-product-version=$(git describe)"

build_script:
  - go get ./...
  - ps: |
        go build -o involucro.exe -ldflags "-s -w -X github.com/thriqon/involucro/app.version=$(git describe)" ./cmd/involucro ;
        ./involucro.exe --version

test_script:
  - go test ./internal/... -v | %GOPATH%\bin\go-junit-report > unit.xml
  - ps: $wc = New-Object 'System.Net.WebClient'; $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\unit.xml))


Test correct packages in Appveyor
Test correct packages in Appveyor
