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
|
|
|
|
- npm 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-14 00:05:36 -05:00
|
|
|
- cp dist/* .
|
2015-04-20 09:19:55 -05:00
|
|
|
|
|
|
|
artifacts:
|
2016-10-14 00:05:36 -05:00
|
|
|
- path: grafana-*windows-ia32.zip
|
2015-04-20 09:19:55 -05:00
|
|
|
name: binzip
|