Added appveyor, trying to test if a windows CI build will be possible

This commit is contained in:
Torkel Odegaard 2015-04-19 20:38:24 +02:00
parent ebdbbbc000
commit fbf4eac257
2 changed files with 22 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[run]
init_cmds = [
["go", "build", "-o", "./bin/grafana-server"],
["./bin/grafana-server"]
["go", "build", "-o", "./bin/grafana-server.exe"],
["./bin/grafana-server.exe"]
]
watch_all = true
watch_dirs = [
@ -12,6 +12,6 @@ watch_dirs = [
watch_exts = [".go", ".ini"]
build_delay = 1500
cmds = [
["go", "build", "-o", "./bin/grafana-server"],
["./bin/grafana-server"]
["go", "build", "-o", "./bin/grafana-server.exe"],
["./bin/grafana-server.exe"]
]

18
appveyor.yml Normal file
View File

@ -0,0 +1,18 @@
version: "{build}"
os: Windows Server 2012 R2
clone_folder: c:\gopath\src\github.com\grafana\grafana
environment:
GOPATH: c:\gopath
install:
- echo %PATH%
- echo %GOPATH%
- go version
- go env
- go get -v -t ./...
build_script:
- go test -v ./pkg/...