2015-04-19 13:38:24 -05:00
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
|
|
|
clone_folder: c:\gopath\src\github.com\grafana\grafana
|
|
|
|
|
|
|
|
environment:
|
2016-03-31 08:47:50 -05:00
|
|
|
nodejs_version: "5"
|
2015-04-19 13:38:24 -05:00
|
|
|
GOPATH: c:\gopath
|
|
|
|
|
|
|
|
install:
|
2015-04-20 01:10:23 -05:00
|
|
|
# install nodejs and npm
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
2017-01-06 00:28:43 -06:00
|
|
|
- npm install -g yarn
|
|
|
|
- yarn install
|
2015-04-20 09:19:55 -05:00
|
|
|
- npm install -g grunt-cli
|
2015-04-20 01:10:23 -05:00
|
|
|
# install gcc (needed for sqlite3)
|
2016-06-16 14:10:30 -05:00
|
|
|
- choco install -y --limit-output mingw
|
2015-04-19 14:31:42 -05:00
|
|
|
- set PATH=C:\tools\mingw64\bin;%PATH%
|
2015-04-19 13:38:24 -05:00
|
|
|
- echo %PATH%
|
|
|
|
- echo %GOPATH%
|
|
|
|
- go version
|
|
|
|
- go env
|
2015-04-19 13:45:18 -05:00
|
|
|
- go run build.go setup
|
2015-04-19 13:38:24 -05:00
|
|
|
|
|
|
|
build_script:
|
2015-04-19 13:45:18 -05:00
|
|
|
- go run build.go build
|
2015-04-20 11:09:57 -05:00
|
|
|
- grunt release
|
2016-10-18 03:54:17 -05:00
|
|
|
- go run build.go sha1-dist
|
2016-10-14 00:05:36 -05:00
|
|
|
- cp dist/* .
|
2015-04-20 09:19:55 -05:00
|
|
|
|
|
|
|
artifacts:
|
2016-10-18 04:42:25 -05:00
|
|
|
- path: grafana-*windows-*.*
|
2015-04-20 09:19:55 -05:00
|
|
|
name: binzip
|
2016-10-14 03:37:31 -05:00
|
|
|
|
|
|
|
deploy:
|
2016-10-17 02:34:58 -05:00
|
|
|
- provider: Environment
|
2016-10-14 03:37:31 -05:00
|
|
|
name: GrafanaBuildsS3
|