Add AppVeyor ci config to enable ci tests on Windows

Influxdb uses gdm for the dependency management. For gdm to work on Windows, it needs go 1.6. Influx still uses go 1.4.3. So go 1.6 will be sed for the pre-build stages, and go 1.4.3 to run the tests.
This arrangements is working in AppVeyor now.
pull/6249/head
mvadu 2016-04-07 05:24:23 +05:30
parent b15260dd4d
commit b670ca1936
2 changed files with 47 additions and 0 deletions

View File

@ -45,6 +45,7 @@ This release removes all of the old clustering code. It operates as a standalone
- [#6153](https://github.com/influxdata/influxdb/issues/6153): Check SHARD DURATION when recreating the same database
- [#6178](https://github.com/influxdata/influxdb/issues/6178): Ensure SHARD DURATION is checked when recreating a retention policy
- [#6223](https://github.com/influxdata/influxdb/issues/6223): Failure to start/run on Windows. Thanks @mvadu
- [#6237](https://github.com/influxdata/influxdb/issues/6237): Enable continuous integration testing on Windows platform via AppVeyor. Thanks @mvadu
## v0.11.1 [2016-03-31]

46
appveyor.yml Normal file
View File

@ -0,0 +1,46 @@
version: 0.{build}
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
os: Windows Server 2012 R2
# Custom clone folder (variables are not expanded here).
clone_folder: c:\gopath\src\github.com\influxdata\influxdb
# Environment variables
environment:
#AppVeyor has go 1.6 as default go environment
GOROOT: C:\go
GOPATH: C:\gopath
# Scripts that run after cloning repository
install:
- set PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
- echo %PATH%
- echo %GOPATH%
- cd C:\gopath\src\github.com\influxdata\influxdb
- go version
- go env
- go get github.com/sparrc/gdm
- cd C:\gopath\src\github.com\influxdata\influxdb
- gdm restore
# To run your custom scripts instead of automatic MSBuild
build_script:
#Currently for gdm to work on Windows, we need go 1.6, but Influx is on go1.4.3, so switch the go environment
- set GOROOT=C:\go14
- set PATH=%GOROOT%\bin;%GOPATH%\bin;%PATH%
- echo %PATH%
- echo %GOPATH%
- go get -t -v ./...
# To run your custom scripts instead of automatic tests
#test_script:
- go test -race -v ./...
# To disable deployment
deploy: off