grafana/appveyor.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

version: "{build}"
os: Windows Server 2012 R2
clone_folder: c:\gopath\src\github.com\grafana\grafana
environment:
nodejs_version: "6"
GOPATH: c:\gopath
install:
# install nodejs and npm
- ps: Install-Product node $env:nodejs_version
- npm install -g yarn
- yarn install --pure-lockfile
- npm install -g grunt-cli
# install gcc (needed for sqlite3)
- choco install -y --limit-output mingw
2015-04-19 14:31:42 -05:00
- set PATH=C:\tools\mingw64\bin;%PATH%
- echo %PATH%
- echo %GOPATH%
- go version
- go env
2015-04-19 13:45:18 -05:00
- go run build.go setup
2017-01-31 11:37:33 -06:00
before_build:
- cmd: if NOT "%buildTag%"=="" echo Building tag! %buildTag%
- cmd: if NOT "%buildTag%"=="" git fetch
- cmd: if NOT "%buildTag%"=="" git checkout %buildTag%
- cmd: echo Building tag? %buildTag%
build_script:
2015-04-19 13:45:18 -05:00
- go run build.go build
- grunt release
- go run build.go sha1-dist
- cp dist/* .
artifacts:
2016-10-18 04:42:25 -05:00
- path: grafana-*windows-*.*
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