appveyor.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.7.4
  8. install:
  9. # install nodejs and npm
  10. - ps: Install-Product node $env:nodejs_version
  11. - npm install -g yarn
  12. - yarn install --pure-lockfile
  13. - npm install -g grunt-cli
  14. - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
  15. - 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
  16. # install gcc (needed for sqlite3)
  17. - choco install -y --limit-output mingw
  18. - set PATH=C:\tools\mingw64\bin;%PATH%
  19. - echo %PATH%
  20. - echo %GOPATH%
  21. - go version
  22. - go env
  23. - go run build.go setup
  24. build_script:
  25. - go run build.go build
  26. - grunt release
  27. - go run build.go sha1-dist
  28. - cp dist/* .
  29. artifacts:
  30. - path: grafana-*windows-*.*
  31. name: binzip
  32. type: zip
  33. deploy:
  34. - provider: Environment
  35. name: GrafanaReleaseMaster
  36. on:
  37. buildType: master
  38. - provider: Environment
  39. name: GrafanaReleaseRelease
  40. on:
  41. buildType: release