1 changed files with 19 additions and 31 deletions
@ -1,37 +1,25 @@ |
|||||||
version: "{build}" |
clone_depth: 5 |
||||||
|
version: "{branch}.{build}" |
||||||
|
|
||||||
hosts: |
image: |
||||||
quic.clemente.io: 127.0.0.1 |
- Visual Studio 2019 |
||||||
|
|
||||||
os: Windows Server 2019 |
|
||||||
|
|
||||||
clone_folder: c:\gopath\src\github.com\mholt\caddy |
|
||||||
|
|
||||||
environment: |
environment: |
||||||
GOPATH: c:\gopath |
matrix: |
||||||
|
- GETH_ARCH: amd64 |
||||||
|
GETH_CC: C:\msys64\mingw64\bin\gcc.exe |
||||||
|
PATH: C:\msys64\mingw64\bin;C:\Program Files (x86)\NSIS\;%PATH% |
||||||
|
|
||||||
install: |
install: |
||||||
- rmdir c:\go /s /q |
- git submodule update --init --depth 1 --recursive |
||||||
- 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 version |
||||||
- go env |
|
||||||
- go get -t ./... |
build_script: |
||||||
- go get github.com/golang/lint/golint |
- ps: $env:VERSION = "$(git describe --always)" |
||||||
- go get github.com/FiloSottile/vendorcheck |
- go run build\ci.go install -dlgo -arch %GETH_ARCH% -cc %GETH_CC% |
||||||
# Install gometalinter |
- 7z a open-etc-pool-friends-win64-%VERSION%.zip .\build\bin\geth.exe |
||||||
- go get github.com/alecthomas/gometalinter |
- ps: Get-FileHash open-etc-pool-friends-win64-$env:VERSION.zip -Algorithm SHA256 |
||||||
|
- ps: Get-FileHash open-etc-pool-friends-win64-$env:VERSION.zip -Algorithm SHA256 | Out-File open-etc-pool-friends-win64-$env:VERSION.zip.sha256 |
||||||
build: off |
- 7z a open-etc-pool-friends-alltools-win64-%VERSION%.zip .\build\bin\* |
||||||
|
- ps: Get-FileHash open-etc-pool-friends-alltools-win64-$env:VERSION.zip -Algorithm SHA256 |
||||||
test_script: |
- ps: Get-FileHash open-etc-pool-friends-alltools-win64-$env:VERSION.zip | Out-File open-etc-pool-friends-alltools-win64-$env:VERSION.zip.sha256 |
||||||
- 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: off |
|
||||||
|
|||||||
Loading…
Reference in new issue