2015-04-19 20:38:24 +02:00
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
|
|
|
|
|
clone_folder: c:\gopath\src\github.com\grafana\grafana
|
|
|
|
|
|
|
|
|
|
environment:
|
2017-01-10 14:59:06 +01:00
|
|
|
nodejs_version: "6"
|
2015-04-19 20:38:24 +02:00
|
|
|
GOPATH: c:\gopath
|
2017-02-17 10:37:59 +01:00
|
|
|
GOVERSION: 1.8
|
2015-04-19 20:38:24 +02:00
|
|
|
|
|
|
|
|
install:
|
2017-02-19 10:35:42 +01:00
|
|
|
- rmdir c:\go /s /q
|
2015-04-20 08:10:23 +02:00
|
|
|
# install nodejs and npm
|
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
2017-02-19 10:35:42 +01:00
|
|
|
- npm install -g yarn --silent
|
2017-02-13 15:26:10 +01:00
|
|
|
- yarn install --pure-lockfile --no-progress
|
2015-04-20 16:19:55 +02:00
|
|
|
- npm install -g grunt-cli
|
2017-01-31 20:57:34 +01:00
|
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
|
|
|
|
|
- 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
|
2015-04-20 08:10:23 +02:00
|
|
|
# install gcc (needed for sqlite3)
|
2016-06-16 21:10:30 +02:00
|
|
|
- choco install -y --limit-output mingw
|
2015-04-19 21:31:42 +02:00
|
|
|
- set PATH=C:\tools\mingw64\bin;%PATH%
|
2015-04-19 20:38:24 +02:00
|
|
|
- echo %PATH%
|
|
|
|
|
- echo %GOPATH%
|
|
|
|
|
- go version
|
|
|
|
|
- go env
|
2017-02-17 12:06:24 +01:00
|
|
|
# - go run build.go setup
|
2015-04-19 20:38:24 +02:00
|
|
|
|
|
|
|
|
build_script:
|
2015-04-19 20:45:18 +02:00
|
|
|
- go run build.go build
|
2015-04-20 18:09:57 +02:00
|
|
|
- grunt release
|
2017-02-23 20:48:31 +01:00
|
|
|
- go run build.go sha-dist
|
2016-10-14 07:05:36 +02:00
|
|
|
- cp dist/* .
|
2015-04-20 16:19:55 +02:00
|
|
|
|
|
|
|
|
artifacts:
|
2016-10-18 11:42:25 +02:00
|
|
|
- path: grafana-*windows-*.*
|
2015-04-20 16:19:55 +02:00
|
|
|
name: binzip
|
2017-01-31 18:37:33 +01:00
|
|
|
type: zip
|
2016-10-14 10:37:31 +02:00
|
|
|
|
|
|
|
|
deploy:
|
2016-10-17 09:34:58 +02:00
|
|
|
- provider: Environment
|
2017-01-31 18:37:33 +01:00
|
|
|
name: GrafanaReleaseMaster
|
|
|
|
|
on:
|
|
|
|
|
buildType: master
|
|
|
|
|
|
|
|
|
|
- provider: Environment
|
|
|
|
|
name: GrafanaReleaseRelease
|
|
|
|
|
on:
|
|
|
|
|
buildType: release
|
|
|
|
|
|
|
|
|
|
|