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:
|
2019-11-21 08:16:32 -06:00
|
|
|
nodejs_version: "12"
|
2018-04-27 09:53:42 -05:00
|
|
|
GOPATH: C:\gopath
|
2020-04-08 07:13:05 -05:00
|
|
|
GOVERSION: 1.14.1
|
2015-04-19 13:38:24 -05:00
|
|
|
|
|
|
|
install:
|
2017-02-19 03:35:42 -06:00
|
|
|
- rmdir c:\go /s /q
|
2015-04-20 01:10:23 -05:00
|
|
|
# install nodejs and npm
|
|
|
|
- ps: Install-Product node $env:nodejs_version
|
2017-02-19 03:35:42 -06:00
|
|
|
- npm install -g yarn --silent
|
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
|
2017-02-17 05:06:24 -06: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
|
2017-02-23 13:48:31 -06:00
|
|
|
- go run build.go sha-dist
|
2016-10-14 00:05:36 -05:00
|
|
|
- cp dist/* .
|
2017-06-29 05:00:59 -05:00
|
|
|
- go test -v ./pkg/...
|
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
|