appveyor.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. version: "{build}"
  2. os: Windows Server 2012 R2
  3. clone_folder: c:\gopath\src\github.com\grafana\grafana
  4. environment:
  5. nodejs_version: "6"
  6. GOPATH: c:\gopath
  7. GOVERSION: 1.9.2
  8. install:
  9. - rmdir c:\go /s /q
  10. # install nodejs and npm
  11. - ps: Install-Product node $env:nodejs_version
  12. - npm install -g yarn --silent
  13. - yarn install --pure-lockfile --no-progress
  14. - npm install -g grunt-cli
  15. - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
  16. - 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
  17. # install gcc (needed for sqlite3)
  18. - choco install -y --limit-output mingw
  19. - set PATH=C:\tools\mingw64\bin;%PATH%
  20. - echo %PATH%
  21. - echo %GOPATH%
  22. - go version
  23. - go env
  24. # - go run build.go setup
  25. build_script:
  26. - go run build.go build
  27. - grunt release
  28. - go run build.go sha-dist
  29. - cp dist/* .
  30. - go test -v ./pkg/...
  31. artifacts:
  32. - path: grafana-*windows-*.*
  33. name: binzip
  34. type: zip
  35. deploy:
  36. - provider: Environment
  37. name: GrafanaReleaseMaster
  38. on:
  39. buildType: master
  40. - provider: Environment
  41. name: GrafanaReleaseRelease
  42. on:
  43. buildType: release