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:
|
2015-12-04 09:56:37 -06:00
|
|
|
nodejs_version: "4"
|
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)
|
2015-04-19 14:31:42 -05:00
|
|
|
- choco install -y mingw
|
|
|
|
- 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
|
2015-04-20 09:19:55 -05:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: dist/*
|
|
|
|
name: binzip
|