2015-10-13 09:11:02 +08:00
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
2015-10-13 09:17:50 +08:00
|
|
|
clone_folder: c:\gopath\src\github.com\mholt\caddy
|
2015-10-13 09:11:02 +08:00
|
|
|
|
|
|
|
environment:
|
2015-10-13 09:17:50 +08:00
|
|
|
GOPATH: c:\gopath
|
2016-02-18 07:08:25 +08:00
|
|
|
CGO_ENABLED: 0
|
2015-10-13 09:11:02 +08:00
|
|
|
|
|
|
|
install:
|
2016-02-20 09:07:48 +08:00
|
|
|
- rmdir c:\go /s /q
|
2016-05-25 08:37:44 +08:00
|
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.6.2.windows-amd64.zip
|
|
|
|
- 7z x go1.6.2.windows-amd64.zip -y -oC:\ > NUL
|
2015-10-13 09:11:02 +08:00
|
|
|
- go version
|
|
|
|
- go env
|
2016-02-18 07:08:25 +08:00
|
|
|
- go get -t ./...
|
2016-03-27 04:26:12 +08:00
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
- go get github.com/gordonklaus/ineffassign
|
|
|
|
- set PATH=%GOPATH%\bin;%PATH%
|
2015-10-13 09:11:02 +08:00
|
|
|
|
2016-02-20 09:07:48 +08:00
|
|
|
build: off
|
|
|
|
|
|
|
|
test_script:
|
2015-10-13 09:11:02 +08:00
|
|
|
- go vet ./...
|
2016-02-20 09:07:48 +08:00
|
|
|
- go test ./...
|
2016-03-27 04:26:12 +08:00
|
|
|
- ineffassign .
|
|
|
|
|
|
|
|
after_test:
|
|
|
|
- golint ./...
|
2016-02-20 09:07:48 +08:00
|
|
|
|
|
|
|
deploy: off
|