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:
|
2017-01-10 07:59:06 -06:00
|
|
|
nodejs_version: "6"
|
2015-04-19 13:38:24 -05:00
|
|
|
GOPATH: c:\gopath
|
2017-01-31 13:57:34 -06:00
|
|
|
GOVERSION: 1.7.4
|
2015-04-19 13:38:24 -05:00
|
|
|
|
|
|
|
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
|
2017-02-13 08:26:10 -06:00
|
|
|
- yarn install --pure-lockfile --no-progress
|
2015-04-20 09:19:55 -05:00
|
|
|
- npm install -g grunt-cli
|
2017-01-31 13:57:34 -06: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 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
|
2017-01-31 11:37:33 -06:00
|
|
|
type: zip
|
2016-10-14 03:37:31 -05:00
|
|
|
|
|
|
|
deploy:
|
2016-10-17 02:34:58 -05:00
|
|
|
- provider: Environment
|
2017-01-31 11:37:33 -06:00
|
|
|
name: GrafanaReleaseMaster
|
|
|
|
on:
|
|
|
|
buildType: master
|
|
|
|
|
|
|
|
- provider: Environment
|
|
|
|
name: GrafanaReleaseRelease
|
|
|
|
on:
|
|
|
|
buildType: release
|
|
|
|
|
|
|
|
|