caddy/appveyor.yml

38 lines
840 B
YAML
Raw Normal View History

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