mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 11:36:29 +00:00
c28f7cb29f
Initial part of #435
44 lines
805 B
YAML
44 lines
805 B
YAML
version: build-{build}.{branch}
|
|
|
|
clone_folder: C:\gopath\src\github.com\Masterminds\semver
|
|
shallow_clone: true
|
|
|
|
environment:
|
|
GOPATH: C:\gopath
|
|
|
|
platform:
|
|
- x64
|
|
|
|
install:
|
|
- go version
|
|
- go env
|
|
- go get -u gopkg.in/alecthomas/gometalinter.v1
|
|
- set PATH=%PATH%;%GOPATH%\bin
|
|
- gometalinter.v1.exe --install
|
|
|
|
build_script:
|
|
- go install -v ./...
|
|
|
|
test_script:
|
|
- "gometalinter.v1 \
|
|
--disable-all \
|
|
--enable deadcode \
|
|
--severity deadcode:error \
|
|
--enable gofmt \
|
|
--enable gosimple \
|
|
--enable ineffassign \
|
|
--enable misspell \
|
|
--enable vet \
|
|
--tests \
|
|
--vendor \
|
|
--deadline 60s \
|
|
./... || exit_code=1"
|
|
- "gometalinter.v1 \
|
|
--disable-all \
|
|
--enable golint \
|
|
--vendor \
|
|
--deadline 60s \
|
|
./... || :"
|
|
- go test -v
|
|
|
|
deploy: off
|