mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-26 02:09:47 +08:00
7271b57136
golint is not part of the tests since our Markdown dependency defines an interface that is not lint-compliant (unfortunately). See https://github.com/russross/blackfriday/issues/240
34 lines
644 B
YAML
34 lines
644 B
YAML
version: "{build}"
|
|
|
|
os: Windows Server 2012 R2
|
|
|
|
clone_folder: c:\gopath\src\github.com\mholt\caddy
|
|
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
CGO_ENABLED: 0
|
|
|
|
install:
|
|
- rmdir c:\go /s /q
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.6.windows-amd64.zip
|
|
- 7z x go1.6.windows-amd64.zip -y -oC:\ > NUL
|
|
- go version
|
|
- go env
|
|
- go get -t ./...
|
|
- go get golang.org/x/tools/cmd/vet
|
|
- go get github.com/golang/lint/golint
|
|
- go get github.com/gordonklaus/ineffassign
|
|
- set PATH=%GOPATH%\bin;%PATH%
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- go vet ./...
|
|
- go test ./...
|
|
- ineffassign .
|
|
|
|
after_test:
|
|
- golint ./...
|
|
|
|
deploy: off
|