2015-10-12 20:11:02 -05:00
|
|
|
version: "{build}"
|
|
|
|
|
2017-09-11 20:49:02 -05:00
|
|
|
hosts:
|
|
|
|
quic.clemente.io: 127.0.0.1
|
|
|
|
|
2015-10-12 20:11:02 -05:00
|
|
|
os: Windows Server 2012 R2
|
|
|
|
|
2015-10-12 20:17:50 -05:00
|
|
|
clone_folder: c:\gopath\src\github.com\mholt\caddy
|
2015-10-12 20:11:02 -05:00
|
|
|
|
|
|
|
environment:
|
2015-10-12 20:17:50 -05:00
|
|
|
GOPATH: c:\gopath
|
2015-10-12 20:11:02 -05:00
|
|
|
|
|
|
|
install:
|
2016-02-19 20:07:48 -05:00
|
|
|
- rmdir c:\go /s /q
|
2017-08-24 22:02:47 -05:00
|
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.9.windows-amd64.zip
|
|
|
|
- 7z x go1.9.windows-amd64.zip -y -oC:\ > NUL
|
2017-05-27 14:30:11 -05:00
|
|
|
- set PATH=%GOPATH%\bin;%PATH%
|
2015-10-12 20:11:02 -05:00
|
|
|
- go version
|
|
|
|
- go env
|
2016-02-17 18:08:25 -05:00
|
|
|
- go get -t ./...
|
2016-03-26 15:26:12 -05:00
|
|
|
- go get github.com/golang/lint/golint
|
2017-05-27 14:30:11 -05:00
|
|
|
- go get github.com/FiloSottile/vendorcheck
|
2017-10-19 12:02:56 -05:00
|
|
|
# Install gometalinter
|
2017-05-27 14:30:11 -05:00
|
|
|
- go get github.com/alecthomas/gometalinter
|
2015-10-12 20:11:02 -05:00
|
|
|
|
2016-02-19 20:07:48 -05:00
|
|
|
build: off
|
|
|
|
|
|
|
|
test_script:
|
2017-10-19 12:02:56 -05:00
|
|
|
- gometalinter --install
|
2017-05-27 14:30:11 -05:00
|
|
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests --vendor ./...
|
2017-08-24 22:02:47 -05:00
|
|
|
- vendorcheck ./...
|
|
|
|
- go test -race ./...
|
2016-03-26 15:26:12 -05:00
|
|
|
|
|
|
|
after_test:
|
2017-08-24 22:02:47 -05:00
|
|
|
- golint ./...
|
2016-02-19 20:07:48 -05:00
|
|
|
|
|
|
|
deploy: off
|