Browse Source

Update appveyor.yml

master
yuriy0803 3 years ago committed by GitHub
parent
commit
7f6aa3028b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      appveyor.yml

43
appveyor.yml

@ -1,18 +1,37 @@
version: 1.0.{build}
image:
- Ubuntu
version: "{build}"
hosts:
quic.clemente.io: 127.0.0.1
os: Windows Server 2019
clone_folder: c:\gopath\src\github.com\mholt\caddy
environment:
matrix:
- ARCH: arm
- ARCH: arm64
- ARCH: amd64
GOPATH: c:\gopath
build_script:
- ps: go build
install:
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.18.windows-amd64.zip
- 7z x go1.11.windows-amd64.zip -y -oC:\ > NUL
- set PATH=%GOPATH%\bin;%PATH%
- go version
- go env
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/FiloSottile/vendorcheck
# Install gometalinter
- go get github.com/alecthomas/gometalinter
build: off
test_script:
- ps: go build
- gometalinter --install
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests --vendor ./...
- vendorcheck ./...
- go test -race ./...
after_test:
- golint ./...
deploy_script:
- ps: go build
deploy: off

Loading…
Cancel
Save